Lianas (woody vines) contribute substantially to the diversity and structure of most tropical forests, yet little is known about the importance of habitat specialization in maintaining tropical liana diversity and the causes of variation among forests in liana abundance and species composition. We examined habitat associations, species diversity, species composition, and community structure of lianas at Sepilok Forest Reserve, Sabah, Malaysia in northeastern Borneo among three soil types that give rise to three distinct forest types of lowland tropical rain forest: alluvial, sandstone hill, and kerangas (heath) forest. Alluvial soils are more nutrient rich and have higher soil moisture than sandstone soils, whereas kerangas soils are the most nutrient poor and drought prone. Lianas ≥0.5-cm in diameter were measured, tagged, and identified to species in three square 0.25-ha plots in each forest type. The number of lianas ≥0.5 cm did not differ significantly among forest types and averaged 1348 lianas ha−1, but mean liana stem diameter, basal area, estimated biomass, species richness, and Fisher’s $$\upalpha$$ diversity index were all greater for plots in alluvial than sandstone or kerangas forests. Liana species composition also differed greatly among the three habitats, with 71% of species showing significant positive or negative habitat associations. Sandstone forests were intermediate to alluvial and kerangas forests in most aspects of liana community structure and composition, and fewer species showed significant habitat associations with this forest type. Ranking of forest types with respect to liana density, biomass, and diversity matches the ranking in soil fertility and water availability (alluvial > sandstone hill > kerangas). These results suggest that edaphic factors play an important role in maintaining liana species diversity and structuring liana communities.