To ensure the return of your security deposit, leave the apartment clean and in the same condition as when you moved in. Repair any damages, fill nail holes, and ensure all items provided by the landlord are in their proper place.