Groundwater pollution by metal elements is a serious issue due to its probable risks to the ecosystem and human health. In the present study, 75 groundwater samples were collected from the Ibinur Lake Basin (ILB) of NW China. The contents of As, Se, Pb, Cu, Cr(Ⅵ), Zn, Mn, and Cd were determined. The levels, pollution degrees, and potential ecological risks of metals in groundwater were systematically analyzed for the first time in this area. The potential sources of metals were also discussed. It was observed that the mean contents of metals in groundwater in the ILB were lower than the Class III thresholds of the Standard for Groundwater Quality of China (GB/T 14848–2017), whereas the maximum contents of As, Se, Pb, Cr(Ⅵ), and Mn exceeded the Class III thresholds values. The pollution index of each metal and the Nemerow comprehensive index (NPI) caused by the overall pollution by all these metals in groundwater showed the pollution-free level. The single and comprehensive potential ecological risk index of analyzed metals in groundwater showed a relatively low level of potential ecological risk. Additionally, spatial distribution patterns of contents, pollution levels, and ecological risks of metals in groundwater in the ILB were found to be substantially heterogeneous. Furthermore, As and Se in groundwater originated from anthropogenic sources such as agriculture and mining, whereas Mn mainly originated from natural factors, and Pb, Cu, Cr(Ⅵ), Zn, and Cd were correlated with both natural and anthropogenic sources. Overall, As was identified as the main pollution factor, while As and Se were identified as the main ecological risk factors in the groundwater in the ILB. These results can provide important information for groundwater management in the ILB and will guide authorities in taking the necessary measures to ensure the safety of groundwater supply in the northwestern arid regions of China.