Extreme and sudden changes in salinity cause a biochemical response in corals (Acropora millepora) that is similar to marine heatwaves.