The DNA fragments are transferred from the gel to the membrane through a process called capillary or electroblotting. The gel is placed on top of the membrane, and a buffer solution is allowed to flow through the gel by capillary action or through the application of an electric current. This transfers the DNA fragments onto the membrane, where they become immobilized.