I describe a series of processes, including hierarchical fragmentation, gravitational scattering, Kozai cycles within triple systems, tidal friction and magnetic braking, that I believe are responsible for producing the modest but significant fraction of stars that are observed as contact binaries. I also discuss further processes, namely heat transport, mass transport, nuclear evolution, thermal relaxation oscillations, and further magnetic braking with tidal friction, that influence the evolution during contact. The endpoint, for contact, is that the two components merge into a single star, as recently was observed in the remarkable system V1309 Sco. The single star probably throws off some mass and rotates rapidly at first, and then slows by magnetic braking to become a rather inconspicuous but normal dwarf or subgiant. If however the contact binary was part of a triple system originally–as I suggested above was rather likely–then the result could be a widish binary with apparently non-coeval components. There are several such known.