Southeast Asia has emerged as an important region for understanding hominin and mammalian migrations and extinctions. High-profile discoveries have shown that Southeast Asia has been home to at least five members of the genus Homo1ï¿½3. Considerable turnover in Pleistocene megafauna has previously been linked with these hominins or with climate change4, although the region is often left out of discussions of megafauna extinctions. In the traditional hominin evolutionary core of Africa, attempts to establish the environmental context of hominin evolution and its association with faunal changes have long been informed by stable isotope methodologies5,6. However, such studies have largely been neglected in Southeast Asia. Here we present a large-scale dataset of stable isotope data for Southeast Asian mammals that spans the Quaternary period. Our results demonstrate that the forests of the Early Pleistocene had given way to savannahs by the Middle Pleistocene, which led to the spread of grazers and extinction of browsersï¿½although geochronological limitations mean that not all samples can be resolved to glacial or interglacial periods. Savannahs retreated by the Late Pleistocene and had completely disappeared by the Holocene epoch, when they were replaced by highly stratified closed-canopy rainforest. This resulted in the ascendency of rainforest-adapted species as well as Homo sapiensï¿½which has a unique adaptive plasticity among homininsï¿½at the expense of savannah and woodland specialists, including Homo erectus. At present, megafauna are restricted to rainforests and are severely threatened by anthropogenic deforestation.