Purpose Cities are key actors in the fight against climate change. They have developed integrated strategies harnessing the power of information and communication technologies (ICT) as part of the move towards smart(er) cities. In spite of our knowledge of the role of technological infrastructure in tackling climate change, the role of governance mechanisms to actively pursue environmental sustainability is often understated. Therefore, the purpose of this paper is to analyse governmentality mechanisms developed by a small town in Europe to render energy savings and new energy sources visible and to create new identities with which the citizen and other cities could then identify with, thereby participating in the fight against climate change. Design/methodology/approach Data were gathered through non-participant observation, interviews and access to internal data from the city's energy control project. Findings The outcome of these governmentality mechanisms was to create two new identities: the "good citizen", responsible to lower his impact on climate change, and the "model city", a laboratory that would serve as a guide for future policies to tackle climate change at the city level. While the "model city" was successful and identification happened with other small cities taking example from it, the "good citizen" failed and inhabitants did not identify with this role model that was defined for them as a way to participate in the fight against climate change. Originality/value The case study contributes to the literature on cities, bringing new insights into how they can become actors of climate change beyond acting on internal controls, and the literature on governmentality by demonstrating how mechanisms can act upon a population without being calculative.