The security deposit is payable at the beginning of a lease to account for any damage to the apartment after it is vacated. It is refunded at the end of the lease minus any retention for damage/repair. Tenants cannot direct the management to use the security deposit to pay the rent.