Many viruses need to stabilize their capsid structure against DNA pressure and for survival in hostile environments. The 9-kDa outer capsid protein (Soc) of bacteriophage T4, which stabilizes the virus, attaches to the capsid during the final stage of maturation. There are 870 Soc molecules that act as a "glue" between neighboring hexameric capsomers, forming a "cage" that stabilizes the T4 capsid against extremes of pH and temperature. Here we report a 1.9 A resolution crystal structure of Soc from the bacteriophage RB69, a close relative of T4. The RB69 crystal structure and a homology model of T4 Soc were fitted into the cryoelectron microscopy reconstruction of the T4 capsid. This established the region of Soc that interacts with the major capsid protein and suggested a mechanism, verified by extensive mutational and biochemical studies, for stabilization of the capsid in which the Soc trimers act as clamps between neighboring capsomers. The results demonstrate the factors involved in stabilizing not only the capsids of T4-like bacteriophages but also many other virus capsids.