Heterodimers are formed through non-covalent interactions such as hydrogen bonds, ionic bonds, and hydrophobic interactions. These interactions facilitate the binding of two distinct protein subunits, often resulting in a complex with unique functional properties. The formation of heterodimers can be influenced by the cellular environment, including pH levels and the presence of specific ligands.