Due to their dual affinity, amphiphilic molecules can self-assemble into various structures such as micelles, liposomes, and bilayers when dispersed in water. This self-assembly behavior is driven by the molecule's tendency to minimize the free energy of the system. For instance, in an aqueous environment, the hydrophobic tails aggregate to avoid water, while the hydrophilic heads remain in contact with the water, forming stable structures.