It is suggested that the partial pressure of carbon dioxide in the atmosphere is buffered, over geological time scales, by a negative feedback mechanism, in which the rate of weathering of silicate minerals (followed by deposition of carbonate minerals) depends on surface temperature, which in turn depends on the carbon dioxide partial pressure through the greenhouse effect. Although the quantitative details of this mechanism are speculative, it appears able to partially stabilize the earth's surface temperature against the steady increase of solar luminosity, believed to have occurred since the origin of the solar system.