What happens to the deposit once it’s been paid?

It is a legal requirement that the tenancy deposit is registered with a Government approved deposit scheme after it has been paid.