Currently environmental pollution is one of the most important factors affecting natural populations and acting as a strong selective pressure. Therefore, identifying genes and their alleles implied in population survival within contaminated areas is a relevant issue. In this context, freshwater systems are likely among those that have been most impacted by pollution. The Maipo River is one of the most polluted basins in Chile, surrounded by 40 % of the human population of the country. There are five populations of the endemic silverside Basilichthys microlepidotus inhabiting this river, two in polluted areas and three in non-polluted areas. The goal of this study was to identify candidate loci or loci potentially under directional and balancing selection related to pollution in B. microlepidotus. To this end, a genome scan (AFLP markers) was performed, comparing between fish located in polluted and non-polluted areas and between fish inhabiting polluted sites. Eight loci (5.37 % of the total loci) were identified as loci potentially under selection; of these, six (4.0 %) showed signatures of directional selection and two (1.34 %) showed signatures of balancing selection. This study contributes to demonstrating that pollution could be implicated in selection even within a basin. As far as we know, this is the first study to date that has detected loci potentially under balancing selection associated with pollution, indicating that pollution influences the maintenance of polymorphisms in these loci.