Some are formed from lava expelled by volcanoes under the sea, such as the Hawaiian Islands. Others, like Madagascar, are created when landmasses break apart over hundreds of millions of years.