This paper proposed a wireless sensor network routing protocol base on ant colony principle and LEACH protocol with energy prediction. The new algorithm added the factor of energy in the procedure that ants had been searching the optimal path. Cluster-head sent data to sink by multiple hops transmission. Therefore, the new algorithm reduced cluster-heads energy consumption. In order to avoid route over-concentration, the new algorithm predicted energy consumption of nodes when it calculated probability of next-hop. The simulation results showed that the new algorithm had the better energy efficiency and the more balanced energy consumption. At the same time, it extended the network lifetime.