This lecture discusses the main differences between legacy energy systems and emerging smart energy systems, highlighting the transformation driven by alternative energy and digitalization. It explores the benefits and risks associated with smart energy systems for cities, emphasizing stability, sustainability, and efficiency. The lecture also covers the technical and institutional conditions necessary for a successful transition, focusing on technical components, open systems, collaboration, governance, and stakeholder involvement.