The ocean component of the Community Climate System Model version 4 (CCSM4) is described, and its solutions from the twentieth-century (20C) simulations are documented in comparison with observations and those of CCSM3. The improvements to the ocean model physical processes include new parameterizations to represent previously missing physics and modifications of existing parameterizations to incorporate recent new developments. In comparison with CCSM3, the new solutions show some significant improvements that can be attributed to these model changes. These include a better equatorial current structure, a sharper thermocline, and elimination of the cold bias of the equatorial cold tongue all in the Pacific Ocean; reduced sea surface temperature (SST) and salinity biases along the North Atlantic Current path; and much smaller potential temperature and salinity biases in the near-surface Pacific Ocean. Other improvements include a global-mean SST that is more consistent with the present-day observations due to a different spinup procedure from that used in CCSM3. Despite these improvements, many of the biases present in CCSM3 still exist in CCSM4. A major concern continues to be the substantial heat content loss in the ocean during the preindustrial control simulation from which the 20C cases start. This heat loss largely reflects the top of the atmospheric model heat loss rate in the coupled system, and it essentially determines the abyssal ocean potential temperature biases in the 20C simulations. There is also a deep salty bias in all basins. As a result of this latter bias in the deep North Atlantic, the parameterized overflow waters cannot penetrate much deeper than in CCSM3.