The time period that you and the lender have agreed the loan will cover.

At the end of that period the loan agreement will terminate. The loan will either need to have been repaid in full over the term or any loan outstanding will need to be repaid in full at this point.