In reef-building corals variations within genes involved in immunity and response to stress correlate to water temperature and clarity, finds a new study. This information could be used to conserve or rebuild reefs in areas affected by climate change, by changes in extreme weather patterns, increasing sedimentation or altered land use.