Comprehensive long-term planning is vital for setting the trajectory of sustainable energy in cities. Planners must anticipate future growth, energy demand, and emerging technologies. Integrating renewable sources, energy efficiency measures, and smart-grid technologies into urban master plans enables cities to proactively manage transitions, avoid infrastructure lock-in, and foster innovation. Strategic energy planning also supports resilience against shocks like extreme weather or supply disruptions, safeguarding urban communities.