A security deposit is an upfront payment made by the tenant to the landlord, serving as a safety net for the landlord in case of property damage or unpaid rent. The deposit is typically returned to the tenant at the end of the lease, minus any deductions for damages or unpaid rent.