A loan agreement is a legally binding contract between a lender and a borrower detailing the terms and conditions of a loan, including the repayment schedule, interest rate, and any penalties for default. It serves to protect both parties by clearly outlining their rights and responsibilities, helping to prevent misunderstandings and disputes.