Oases are vital habitat areas for both humans and wild plants and animals in desert areas of arid Northwestern China. The efficient management of oasis water resources, especially groundwater resources, is very important for the environmental sustainability and economic development of the region. Pumping wells play a vital role in the oasis groundwater supply; therefore, optimizing the layout of these wells is essential for water resource management. In this study, we present a novel optimization methodology that implements a genetic algorithm and nonlinear programming model for the layout of pumping wells. The methodology was tested and evaluated in the real oasis case study of Qira Oasis located in southern Xinjiang Province, China. The optimization result shows that only 68 pumping wells are required for irrigation purposes of Qira Oasis, and this layout reduces the number of current pumping wells strongly by 59%. Thus, a large number of pumping wells can be closed to save resources. The optimizing method presented in this research is mathematically general and can be applied to other oasis areas without any obstacles. This method can provide decision-makers and managers with key information to ensure the optimal management and safety of valuable groundwater resources in oases.