The conveyance transaction, which is where the legal title is then passed to the new owner.
This is a three stage process, and is definitely complicated for anyone who lacks significant experience in this area. This is just another reason why it is best to hire a professional.