Start with the tenancy agreement and local ending rules. Moving belongings out does not necessarily end payment obligations, and deposit arrangements vary by jurisdiction and contract.
Finish with a documented handover, final readings and a clear settlement. Preserve evidence and use the applicable dispute route; do not assume the deposit can replace the last rent payment.