On geological timescales, carbon dioxide enters the atmosphere through volcanism and organic matter oxidation and is removed through mineral weathering and carbonate burial. An analysis of ice-core CO2 records and marine carbonate chemistry indicates a tight coupling between these processes during the past 610,000 years, which suggests that a weathering feedback driven by atmospheric CO2 leads to a mass balance between CO2 sources and sinks on long timescales.