Initially, the DNA fragment ends are made blunt and the 5' ends are phosphorylated using a combination of enzymes. Taq polymerase then assists in attaching adapters to the DNA fragments. It's crucial to maintain an optimal ratio of 10 adapters to one fragment to prevent the formation of adapter dimers.