Philip Thurston/GettyCoral reefs are the rainforests of the sea. Reefs house an astonishing array of marine species and attract scores of nature-loving tourists each year. Australia’s Great Barrier Reef and Ningaloo Reef together contribute roughly A$100 billion to the national economy.For millions of people worldwide, coral reefs are an indispensable source of food, income and coastal protection. Their livelihoods and lives come under threat when reefs degrade.Reefs are on the frontline of climate change. Ocean warming, coupled with a record-breaking El Niño, are putting their very survival at risk.Our new study took a closer look at how coral species are coping with marine heatwaves, which wreak havoc beneath the ocean’s surface.Looking ahead, the future of reefs depends on whether corals can evolve fast enough to keep pace. Many reefs may not survive without urgent climate action.Reefs at riskGreenhouse gas emissions from the burning of fossil fuels are driving the rapid warming of the world’s oceans. More than 90% of all extra trapped heat has gone into the ocean.Surging seawater temperatures trigger bleaching, where stressed corals lose the nutrient-giving algae that live in their tissues. This weakens the coral and gives it a white colour. If extreme heat persists, corals can die.Marine heatwaves are becoming more common and severe. These “underwater bushfires” occur when the ocean stays abnormally hot for an extended period.Australia’s Great Barrier Reef, for instance, experienced only two major bleachings before 2016. It has suffered five more since then, including back-to-back marine heatwaves in 2016-17.Beyond rising temperatures, land-based practices like intensive agriculture and coastal development can also put pressure on reefs by releasing sediment, harmful chemicals and excess nutrients.Together, these pressures have degraded roughly half of the world’s coral reefs in the past 50 years. Read more: Marine heatwaves are cooking our ocean ecosystems – and will only become more common Are corals adapting to heat?As intense marine heatwaves and mass bleachings become more common, we might assume corals are naturally adapting to extreme temperatures. But this hope and assumption remains untested.Whether corals will be able to evolve quickly enough in response to warming has been a long-standing question. Promising ecological observations have shown that some reefs have bleached less severely during recurring heatwaves, leading many to hope that corals are rapidly evolving to cope with extreme conditions. Read more: Another mass bleaching event is devastating the Great Barrier Reef. What will it take for coral to survive? What we discoveredOur new study directly tested whether wild coral populations are adapting in response to marine heatwaves.We combed through decades of data, from genomic sequencing to ecological modelling and satellite sea temperatures, collected from across the Great Barrier Reef. This allowed us to analyse the DNA of 905 coral samples taken between 2003 and 2019. The samples were taken from two widespread coral species that help build up reefs.One species, Acropora tenuis, showed clear and rapid genetic shifts that aligned with extreme sea surface temperatures over time. Remarkably, these evolutionary changes unfolded within this 16-year period. This shows certain wild coral populations have an inherent ability to rapidly change in response to ocean warming. This study provides genetic evidence that some coral species can change in response to warming in the time-scales needed to fight the climate crisis. The very fact the genes of coral populations can change from year to year offers cautious hope that some corals will rapidly adapt to marine heatwaves.However, our findings show not all corals respond to warming at the same rate, or even in the same way. A second related species in our study, Acropora millepora, showed no comparable genetic shift.In addition, apparent shifts in tolerance could be an ecological “mirage”.This means that when a severe marine heatwave hits, the most heat sensitive species and individual corals tend to die off first. So the hardier survivors may be less vulnerable to the next bleaching event. This shifts the reef’s overall heat threshold. Signs of genetic shifts after bleaching are also hard to disentangle from other random processes.All of this makes reef conservation and broader climate action even more urgent. Acropora coral with white and blue tips on a coral reef. Juan marcos borsatto/Getty Read more: Adapt, move, or die: repeated coral bleaching leaves wildlife on the Great Barrier Reef with few options Adaptation alone isn’t enoughExpecting corals to rapidly adapt on their own is a dangerous gamble, which risks leaving the most vulnerable species behind. Satellite data reveals sea surface temperatures are heating up more than four times faster than they were in 2019. Even corals that can genetically adapt now may struggle to keep up. And for those that can’t, it’s an unwinnable race.This assumption also fosters the idea coral reefs will simply “take care of themselves”. This type of passive optimism overlooks the urgent need to curb fossil fuel emissions and confront climate change head-on.Our research shows nature has some capacity to heal – but that capacity is limited. Natural adaptation may buy us a little time, but it cannot replace urgent, ambitious climate action to cut global emissions. The future of our coral reefs depends on that. Read more: Devastating coral bleaching will be more common, start earlier and last longer unless we cut emissions Kate Quigley receives funding from the Australian Research Council and the Minderoo Foundation. She is also principal research ccientist and senior advisor at the Minderoo Foundation.Mikhail Matz does not work for, consult, own shares in or receive funding from any company or organisation that would benefit from this article, and has disclosed no relevant affiliations beyond their academic appointment.