PurposeThis study investigates the impact of smart city construction (SCC) on urban energy consumption.Design/methodology/approachThe focus is on a panel of 285 prefecture level cities in China from 2010 to 2021. The empirical evidence is based on the difference-in-difference (DID) method. We uses per capita coal consumption as a proxy variable to measure urban energy consumption energy consumption. We set the SCC as a policy dummy variable, with pilot cities set to 1 and non-pilot cities set to 0. We also selected a series of control variables that affect urban energy consumption, such as urbanization rate, labor force, road density, number of college students per 10000 people, regional economic development level and so on.Findings(1) SCC significantly reduces urban energy consumption, and the conclusion still holds after conducting robustness testing; (2) SCC reduces urban energy consumption is mainly effective in those cities with larger scale, stronger human capital, larger financial services and better information infrastructure construction; (3) The technological innovation and industrial structure upgrading are the main mechanisms for the SSC policy to reduce urban energy consumption.Originality/valueThe results in this study provide evidence for achieving an environmentally friendly society.