Antimicrobial resistance (AMR) remains a major threat to global health. To date, tractable approaches that decipher how AMR emerges within a bacterial population remain limited. Here, we developed a framework that exploits genetic diversity from environmental bacterial populations to decode emergent phenotypes such as AMR. OmpU, is a porin that makes up to 60% of the outer membrane of Vibrio cholerae, the cholera pathogen. This porin is directly associated with the emergence of the bacterium and confers resistance to numerous host antimicrobials. In this study, we examined naturally occurring allelic variants of OmpU in environmental V. cholerae and established associations that connected genotypic variation with phenotypic outcome. We covered the landscape of gene variability and found that the porin forms two major phylogenetic clusters with striking genetic diversity. We generated 14 isogenic mutant strains, each encoding a unique ompU allele, and found that divergent genotypes lead to convergent antimicrobial resistance profiles. We identified and characterized functional domains in OmpU unique to variants conferring AMR-associated phenotypes. Specifically, we identified four conserved domains that are linked with resistance to bile and host-derived antimicrobial peptides. Mutant strains for these domains exhibit differential susceptibility patterns to these and other antimicrobials. Interestingly, a mutant strain in which we exchanged the four domains of the clinical allele for those of a sensitive strain exhibits a resistance profile closer to a porin deletion mutant. Finally, using phenotypic microarrays, we uncovered novel functions of OmpU and their connection with allelic variability. Our findings highlight the suitability of our approach towards dissecting the specific protein domains associated with the emergence of AMR and can be naturally extended to other bacterial pathogens and biological processes.