A suitable routing mechanism for wireless sensor network in mine gob area was designed.Firstly, LEACH cluster heads selection mechanism was improved by adding remaining energy parameter to threshold function,then a routing algorithm of wireless sensor network was designed with the improved protocol and multi-path routing mechanism. Finally,three experiments were given with NS-2 network simulation platform. The experimental results showed that the improved protocol has improved energy efficiency of nodes and extended life cycle of network.