The Yangtze River Delta (YRD) experienced record-breaking heat in the summer of 2022. However, the urban heat pattern and the role of urban expansion over the last two decades in this hot summer have not been explored. Using the advanced mesoscale Weather Research and Forecasting (WRF) model, we reproduced the fine spatial features and investigated the urban heat island (UHI) and dry island (UDI) effects during the two identified heatwaves in 2022. We further replace the current (2020) land use with the historical (2001) land use in WRF to evaluate the impacts of urban expansion from 2001 to 2020 on air temperature and moisture. Our finding revealed that the conversion of land use resulted in near-surface warming and drying, with pronounced diurnal variations, especially during the July heatwave. The analysis of surface energy balance demonstrated that the substantial decrease in evapotranspiration (ET) was the primary driver of daytime warming, elevating temperatures by 7 °C (July heatwave) and 2 °C (August heatwave). This ET reduction also led to the strong daytime coupling of warming and drying effects over new urban areas. At night, the release of stored heat resulted in the temperature increase of 2 °C (1 °C) during July (August) heatwave, highlighting the nighttime as a critical period for heightened thermal risk. Additionally, urban expansion at the periphery contributed modestly to the warming of urban cores, exacerbating conditions in an already hot environment. This study enhances understanding of the impacts of urban expansion on air temperature and humidity during extreme heatwaves, thereby supporting targeted adaptation and mitigation for extreme events within large cities.