Security Deposit
A security deposit is money a tenant pays at the start of a lease that the landlord holds to cover unpaid rent or damage beyond normal wear and tear.
State and sometimes city law controls security deposits: how much can be charged (some states cap it at one or two months' rent), whether it must be kept in a separate account or earn interest, how fast it must be returned after move-out (often 14 to 30 days), and what must be itemized. Landlords can deduct for unpaid rent and damage, but not for normal wear and tear such as faded paint or lightly worn carpet.
Example: a tenant paid a $1,400 deposit and moves out owing $200 of rent, with a door that needs replacing ($350) and normal carpet wear. The landlord sends an itemized statement within the state's deadline: $1,400 minus $200 and $350 leaves $850 returned. Charging for the carpet would likely not hold up, and missing the deadline can, in some states, cost the landlord the right to keep anything, or a penalty.
When you buy an occupied rental, the tenants' deposits should transfer to you at closing as a credit on the settlement statement. Confirm the amounts with tenant estoppel certificates, because you will owe them back when the tenants leave.