A security deposit is held by the landlord to cover unpaid rent or damages to the property when the lease ends.