The heterotrimeric G protein alpha subunit (Galpha) functions as a molecular switch by cycling between inactive GDP-bound and active GTP-bound states. When bound to GDP, Galpha interacts with high affinity to a complex of the beta and gamma subunits (Gbetagamma), but when bound to GTP, Galpha dissociates from this complex to activate downstream signaling pathways. Galpha's state is communicated to other cellular components via conformational changes within its switch I and II regions. To identify key determinants of Galpha's function as a signaling pathway molecular switch, a Bayesian approach was used to infer the selective constraints that most distinguish Galpha and closely related Arf family GTPases from distantly related translational and metabolic GTPases. The strongest of these constraints are imposed on seven residues within or near the switch II region. Likewise, constraints imposed on Galpha but not on other, closely related molecular switches correspond to four nearby residues. These constraints are explained by a proposed mechanism for GTP-induced dissociation of Galpha from Gbetagamma where an Arg-Trp pair senses the presence of bound GTP leading to conformational retraction of a nearby lysine and to disruption of an aromatic cluster. Within a complex of Gialpha, Gibetagamma, and GDP, this lysine establishes greater surface contact with Gibeta than does any other residue in Gialpha, whereas the aromatic cluster packs against a highly conserved tryptophan in Gibeta that establishes greater surface contact with Gialpha than does any other residue in Gibeta. Other structural features associated with Galpha functional divergence further support the proposed mechanism.