The building of an atoll begins with a volcanic island that has reared up from the depths of the ocean.
A typical volcanic island takes several million years to form. When its magma source becomes dormant or is no longer beneath the island, it stops growing.