Urban agglomerations are the centers of carbon emissions. However, research on sector-specific carbon emissions in different urban agglomerations is still limited. Drawing on the data of China's six urban agglomerations in 2005, 2010, and 2015, this study investigates the spatio-temporal patterns, regional inequalities, and driving forces of total, industrial, transportation, and residential carbon emissions. The study found that Beijing-Tianjin-Hebei was the total and sectoral emission center among the studied urban agglomerations. Additionally, regional carbon inequalities gradually decreased, implying a growing regional synergistic carbon pattern. The driving forces of carbon emissions, including population, GDP, energy intensity, secondary industry, tertiary industry, foreign investment, urbanization, and green coverage, varied across sectors and regions. Notably, foreign investment could lead to lower carbon emissions in less developed agglomerations like Beijing-Tianjin-Hebei, the Central Plains, and the middle reaches of the Yangtze River, whereas more developed agglomerations like the Yangtze River Delta and the Pearl River Delta benefited less from foreign investment. Besides, ChengYu has good ecological conditions and sustainable development modes, which linked urbanization and green space to reduced carbon emissions in the industrial sector. The findings can help formulate differentiated carbon policy and support sustainable development.