SAMs form through the adsorption of amphiphilic molecules from a solution or vapor onto a substrate. The head group binds to the substrate, often through covalent bonds, while the tail groups interact with each other through van der Waals forces, hydrogen bonds, or other intermolecular forces, leading to a highly ordered, single-molecule-thick layer.