Vesicles are generally formed through a process called self-assembly. In this process, amphiphilic molecules, which contain both hydrophilic (water-attracting) and hydrophobic (water-repelling) parts, spontaneously arrange themselves into spherical structures in an aqueous environment. This arrangement minimizes the free energy of the system, creating a stable vesicle that can encapsulate various substances.