A mortgage is a legal agreement by which a borrower (typically a property owner) conveys an interest in real estate to a lender as security for a loan, typically used to purchase the property. The borrower retains possession and use of the property, but the lender holds a lien against it. The main elements of a mortgage include the principal loan amount, interest rate, repayment schedule, and the terms and conditions agreed upon by both parties.