To estimate the effect of vegetation stress and changes in biogenic volatile organic compound (BVOC) emissions on urban ozone (O3) levels we perform a systematic, observation-based analysis of the relationship between formaldehyde (HCHO) mixing ratios, meteorological parameters, measurement-based drought indicators and O3 over the central European city of Vienna, Austria. In addition, numerical models SURface EXternalisée (SURFEX), Model of Emissions of Gases and Aerosols from Nature (MEGAN) Vers.2.1 and 3 and MOdèle de Chimie A Grande Echelle (MOCAGE) are combined to estimate the soil moisture, the spatial distribution and drought response of isoprene emissions, and the resulting distribution of HCHO in the atmosphere. To analyse the effect of drought during spring and summer we contrast observations during dry and reference years. Our results show that the observed HCHO can be explained using the simulated isoprene emissions as well as observed and simulated vegetation drought responses. HCHO mixing ratios differ strongly between dry and reference seasons. Spring-time precipitation deficits facilitate reduced HCHO mixing ratios due to delayed and weakened plant growth. In consequence also O3 burdens are lowered due to reduced BVOC precursor emissions. These reductions occur despite radiation levels being higher than during the reference year, illustrating the strong potential of spring-time BVOC emissions to modulate urban O3 burdens. Conversely, during summer elevated O3 levels occur during local drought conditions. These are driven by advected isoprene originating from nearby forest areas, which are not affected by drought. Our results regarding elevated summer-time O3 burdens under vegetation heat and drought stress are in good agreement with previous work.