Cooperation between a salt bridge and the hydrophobic core triggers fold stabilization in a Trp-cage miniprotein.