"A mortgage is an agreement between you and a lender that gives the lender the right to take your property if you don't repay the money you've borrowed plus interest" (CFPB). Mortgages are used to buy a home or to borrow against one you already own.
The CFPB lists key features for comparing mortgages, including the loan size, the interest rate, the closing costs, the APR, whether the rate is fixed or adjustable, and the loan term.
A mortgage is paid off through amortization: a monthly payment covering interest and principal. A $200,000 mortgage at 6% for 30 years has a principal-and-interest payment of $1,199.10. The CFPB notes that the total monthly payment "usually includes additional costs like homeowners insurance, taxes, and possibly mortgage insurance" (CFPB).
The cash paid upfront is the down payment.