According to the current situation of domestic sewage discharge and the heat demand of bathing hot water in Xintun Mine, the "A/O biological contact oxidation + advanced treatment" process was proposed to treat domestic sewage in the mining area and make full use of the low temperature heat energy of the treated medium water. The heat pump technology was used to heat the bathing hot water, and the specific calculation method was given. After the actual operation, the system was tested and the running cost was analyzed. Both the water quality standard and the bathing hot water could meet the requirements, which greatly reduced the running cost, with obvious economic, social and environmental benefits, providing technical reference for the development of similar projects.