Abstract
<jats:p> Heatwaves can affect species abundances by changing how species interact with one another in local communities. These effects can be complex and remain poorly understood, especially in cases where the outcome of species interactions is contingent on the history of species arrival. We studied how heatwaves affect interactions between the yeast <jats:italic>Metschnikowia reukaufii</jats:italic> and the bacterium <jats:italic>Acinetobacter nectaris</jats:italic> , both commonly found in the floral nectar of <jats:italic>Diplacus aurantiacus</jats:italic> , a hummingbird-pollinated shrub native to California. The microbes were introduced to artificial nectar in different orders of arrival in the presence or absence of simulated two-day heatwaves. We found that heatwaves made yeast—bacterium interactions more contingent on arrival history, thereby causing large variation in nectar acidity, a factor known to affect hummingbird preference and seed production. In the absence of heatwaves, <jats:italic>Acinetobacter</jats:italic> always became abundant regardless of arrival history, suppressing <jats:italic>Metschnikowia</jats:italic> and reducing nectar pH. In contrast, in the presence of heatwaves, <jats:italic>Acinetobacter</jats:italic> dominance depended on arrival history and heatwave timing. If <jats:italic>Acinetobacter</jats:italic> arrived after <jats:italic>Metschnikowia</jats:italic> during a heatwave, <jats:italic>Metschnikowia</jats:italic> suppressed <jats:italic>Acinetobacter</jats:italic> substantially enough to keep nectar pH at a high level. These results suggest that heatwaves shift species interactions from determinism to historical contingency, with both taxonomic and functional consequences. </jats:p>