Explanation
The volcano loses height as its material erodes from the top down. Eventually, the top of the volcano is at sea level, while coral has built up just above that level. The volcano’s cavity fills with water, forming a lagoon. (Coral also accumulates in the lagoon.)