Evolutionary processes in hominoid primates were closely related to global and/or regional environmental changes, and therefore palaeoenvironmental reconstruction is fundamental for understanding how environmental changes shaped their evolution. Here, we present pollen data from the 16-m-thick Shuitangba (STB) section, Yunnan Province, southwestern China, bearing remains of the hominoid Lufengpithecus lufengensis of the terminal Miocene; and use principal component analysis to reconstruct the palaeovegetation and palaeoclimate during the key period when the hominoid lived. Our results show that before the STB hominoid appeared (Zone A), the vegetation was dominated by subtropical evergreen broad-leaved taxa with a few temperate deciduous taxa (e.g., Quercus, Castanea/Castanopsis, Alnus). The development of aquatic plants commencing at the~12 m depth is a prominent feature, indicating a warm and humid climate. During the time when the hominoid lived (Zone B), evergreen broad-leaved forests with evergreen Quercus were predominant, while grasses including Poaceae began to expand, and simultaneously conifers decreased, indicating a warm climate. The significant presence of aquatic pollen taxa in subzone A-2 and Zone B suggests the occurrence of lacustrine or swampy environments. In contrast, in Zone C, the vegetation changed to coniferous forest, indicating cooler and drier conditions. These results provide substantive evidence of the vegetation conditions when the hominoid lived, suggesting that the greater diversity of vegetation and the warm humid climate, compared to the present day, would have favoured its survival.