Riparian remnants are linear strips of vegetation immediately adjacent to rivers that may act as refuges for biodiversity, depending on their habitat quality. In this study, we evaluated the role of riparian remnants in contributing to the diversity of leaf-litter ants by determining the relationship between ant diversity and several riparian habitat characteristics within a human-dominated landscape in Veracruz, Mexico. Sampling was carried out in 2012 during both dry and rainy seasons at 12 transects 100 m in length, where 10 leaf-litter samples were collected along each transect and processed with Berlese-Tullgren funnels and Winkler sacks. A total of 8,684 individuals belonging to 53 species, 22 genera, and seven subfamilies were collected. The observed mean alpha diversity accounted for 34.4% of the total species recorded and beta diversity for 65.6%. Species richness and composition were significantly related to litter-layer depth and soil compaction, which could limit the distribution of ant species depending on their nesting, feeding, and foraging habits. Riparian remnants can contribute toward the conservation of ant assemblages and likely other invertebrate communities that are threatened by anthropogenic pressures. In human-dominated landscapes where remnants of riparian vegetation give refuge to a diverse array of myrmecofauna, the protection of the few remaining and well-preserved riparian sites is essential for the long-term maintenance of biodiversity.