Water damage is one of the five major natural disasters affecting coal mine safety, and water from the sandstone fissures at the top and bottom of the coal system is the main water source. In order to identify and manage the water damage at the top and bottom of the roof and floor in advance, reduce the cost of coal mining and ensure the safety of mine production, based on the 3307 working face of the No. 2 mine of Sangshuping, during the roadway mining, the physical and chemical detection advanced technology was adopted. The high elevation self-flow diversion drainage was used to control the source of sewage, so as to achieve green environmental protection and efficient mining. The technology provided reference for the advanced exploration and treatment of water damage in the top and bottom of similar mines.