"Have to" is used to express certainty, necessity, and obligation.
eg, it's 11 o'clock , i have to go. (coz it 's late )
i'm tired now. i have to take a rest.
She had to finish the first book before the midterm
She has to read four books for this literature class.