Greater diversity of coral species on reefs can help corals survive and thrive.