Tropical forests undergo continuous transformation to other land uses, resulting in landscapes typified by forest fragments surrounded by anthropogenic habitats. Small forest fragments, specifically strip-shaped remnants flanking streams (referred to as riparian remnants), can be particularly important for the maintenance and conservation of biodiversity within highly fragmented forests. We compared frog species diversity between riparian remnants, other forest fragments and cattle pastures in a tropical landscape in Los Tuxtlas, Mexico. We found similar species richness in the three habitats studied and a similar assemblage structure between riparian remnants and forest fragments, although species composition differed by 50 per cent. Frog abundance was halved in riparian remnants compared with forest fragments, but was twice that found in pastures. Our results suggest that riparian remnants play an important role in maintaining a portion of frog species diversity in a highly fragmented forest, particularly during environmentally stressful (hot and dry) periods. In this regard, however, the role of riparian remnants is complementary, rather than substitutive, with respect to the function of other forest fragments within the fragmented forest.