A mortgage is a loan from a bank or financial institution that helps a borrower purchase a home. It is likely the largest and longest loan you’ll ever take out. Mortgages have three main elements that are combined in different ways, depending on the borrower and lender — loan type, interest rate, and loan terms. Knowing how these pieces work together can help you pick the right mortgage.