At the end of your tenancy. Your landlord must return your deposit within 10 days of you both agreeing how much you’ll get back. If you’re in a dispute with your landlord, then your deposit will be protected in the TDP scheme until the issue is sorted out.