The formation of an atoll is a slow process that can take millions of years. It begins when an underwater volcano erupts, creating a buildup of lava on the seafloor. With continued eruptions, the lava continues to build until it breaks through the ocean's surface and forms an island.