The ecoregions of Madagascar, as defined by the World Wildlife Fund, include seven terrestrial, five freshwater, and two marine ecoregions. Madagascar's diverse natural habitats harbour a rich fauna and flora with high levels of endemism, but most ecoregions suffer from habitat loss.
Madagascar belongs to the Afrotropical realm. With its neighboring Indian Ocean islands, it has been classified by botanist Armen Takhtajan as Madagascan Region, and in phytogeography it is the floristic Madagascan Subkingdom in the Paleotropical Kingdom. Madagascar features very contrasting topography, climate, and geology. A mountain range on the east, rising to 2,876 m (9,436 ft) at its highest point, captures most rainfall brought in by trade winds from the Indian Ocean. Consequently, the eastern belt harbours most of the humid forests, while precipitation decreases to the west. The rain shadow region in the southwest has a sub-arid climate. Temperatures are highest on the west coast, with annual means of up to 30 °C (86 °F), while the high massifs have a cool climate, with a 5 °C (41 °F) annual mean locally. Geology features mainly igneous and metamorphic basement rocks, with some lava and quartzite in the central and eastern plateaus, while the western part has belts of sandstone, limestone (including the tsingy formations), and unconsolidated sand.