Urban flooding threatens residents and their property, necessitating timely and accurate flood simulations to enhance prevention measures. However, as a megacity, Shanghai presents a complex underlying surface that proves challenging to assess accurately in existing studies. To simulate the dynamic flooding caused by Typhoon In-Fa in Shanghai from July 23rd to 28th 2021, we employed the LISFLOOD hydrodynamic model with multi-source data and validated the flooded area using the S1FLOOD deep learning model with Sentinel-1 satellite imagery. Based on simulated flood results and a flood depth classification system, we quantified the impacts of flood inundation on population, land use, and buildings. Key findings include: (1) The most severe flooding period in Shanghai occurred on July 25th and 26th 2021. (2) The LISFLOOD model effectively captured the extent of inundation, with the very-high flood depth zone covering 98.07 % of the area identified as flooded by the S1FLOOD and Sentinel-1. (3) Peak-affected individuals were recorded on July 25th 2021. (4) Farmland experienced the most extensive flooding among land use types, while residential buildings were notably affected among building types. Our study reconstructed the spatiotemporal dynamics of Typhoon In-Fa-induced flooding in Shanghai. We mapped the spatial extent and water depths, revealing the dynamic impacts of inundation on population, land use, and buildings across urban areas. This comprehensive framework for flood simulation and inundation impact analysis offers a valuable approach to improve urban flood emergency response.