In the context of increasing urbanization and climate change globally, urban energy systems (UES) planning needs adequate consideration change, particularly to ensure supply during extreme weather events (EWE) such as heatwaves, floods, typhoons. Here we propose a two-layer modeling framework for UES considering impact EWE. An application typical coastal city Xiamen, China reveals that deployin...