Urbanization and global warming are two of the major human impacts on the environment. The Urban Heat Island (UHI) effect can change precipitation patterns. Global warming also leads to changes in precipitation and especially an increase in intensity and frequency of extreme precipitation. With urbanization expected to grow in the future, the role of UHI in a warmer climate is an important research question. We present results from 20-year long regional convection-permitting model simulations that include the UHI effect, run for historical and future climates for two megacities, Paris and Shanghai. In the warmer future climate, urban-induced precipitation is found to decrease compared to the historical climate, for both mean and extreme precipitation, with large uncertainties due to natural variability. The mean precipitation increase due to UHI in Paris is 2.2± 1.4% and 1.8 ± 1.3% for historical and future conditions, respectively. Shanghai has slightly weaker mean precipitation change than Paris at present and no change in the future. The future reduction of the urban effect is found to be caused by a decrease in summer precipitation for both cities. Interannual variability in precipitation due to UHI is larger for Shanghai than Paris. The UHI effect on extreme precipitation is also reduced in the future climate and the area with precipitation increase is more concentrated. The general increase in extreme precipitation due to global warming, in combination with the precipitation redistribution due to UHI, underline the importance for future urban planning to mitigate damage caused by extreme precipitation events.