Under the influential role of the Andean range, western Amazonia developed distinctive environmental conditions that ultimately led to divergent, higher biodiversity within the Neotropics. Although this intimate geologic-biotic interaction might have produced similar phenomena in the past, our knowledge about the tropical biotic evolution occurring in close proximity to these rapid growing mountains is poorly documented in the deep time. A pivotal time interval for the emergence of the modern Amazonian ecosystems occurred during the Miocene, when major Andean uplift remodeled the landscape of the foreland basin and fostered the onset of the Amazon River System, at about 10.5 million years ago. Proto-Amazonian biotas just prior to this episode are integral to understanding origins of Neotropical biodiversity, yet vertebrate fossil evidence was extraordinarily rare thus far. By studying the evolution, ecology, and biogeography of fossil mesoeucrocodylians (caimans, gharials, and sebecids) documented in new rich paleontological sites of eastern Peru, this research provides a snapshot of the florishing Miocene life of western proto-Amazonia. The crocodylian assemblage of the Iquitos bonebeds (middle-late Miocene transition) is extraordinary in representing both the highest taxonomic diversity (with up to seven associated species) and the widest range of snout morphotypes ever recorded in any crocodyliform community, recent or extinct. The heterogeneity of snout shapes at the Peruvian Miocene localities covers most of the morphospace range known for the entire crocodyliform clade reflecting the combined influences of long-term evolution, resource abundance and variety, and niche partitioning in a complex ecosystem, with no recent equivalent. Besides the large-bodied Purussaurus and Mourasuchus, all other crocodylians in Iquitos are new taxa, including a stem caiman—Gnatusuchus pebasensis—bearing a massive shovel-shaped mandible, procumbent anterior and globular posterior teeth, and a mammal-like diastema. This unusual species is an extreme exemplar of a radiation of small caimans with crushing dentitions recording peculiar feeding strategies correlated with a peak in proto-Amazonian molluscan diversity and abundance, deep in the so-called Pebas Mega-Wetland System. The sole long-snouted crocodylian in this community is the basalmost gavialoid of the Amazonian basin, a critical taxon that offers evidence for accurately reconstructing the ancestral anatomy and ecology of this clade. Including this new species in phylogenetic-morphometric analyses suggests that the evolution of the similar rostral pattern between South American and Indian gavialoids results from parallel evolution in riverine habitats. As part of the same prevailing Pebas biome, Fitzcarrald localities correspond to coeval paleoenvironments closer to the Andean influence (13-12 Ma). This fauna includes deep-snouted sebecids (Sebecosuchia) and advanced gavialoids (Gavialoidea) with protruding eyes, associated with a wide array of caimans (Mourasuchus, Purussaurus, Paleosuchus et Eocaiman), and further suggesting the presence of terrestrial settings and fluvially-dominated ecosystems. On the other hand, the highly endemic Iquitos faunas evolved within the dysoxic marshes and swamps typical of the long-lived Pebas Mega-Wetland System (early–early late Miocene) and declined with the inception of the transcontinental Amazon drainage, favoring diversification of longirostrine crocodylians and more modern generalist-feeding caimans. Indeed, the end of the Pebas Mega-Wetland System notably resulted in the reduction of the phylogenetic and morphotypical mesoeucrocodylian proto-Amazonian diversity, designating the beginning of the modern Amazonian faunas. The rise and demise of distinctive, highly productive aquatic ecosystems substantially influenced evolution of Amazonian biodiversity hotspots of crocodylians and other organisms throughout the Neogene.