According to high energy losing caused by directly communication between cluster heads and Sink node in LEACH algorithm, a new algorithm based on ant algorithm is formally deriver in this paper. The algorithm takes advantage of the features of ant algorithm, i.e. being easy to be realized, and supporting multi-path to build cluster routing, through the information of its distance and remaining energy of nodes. Then the distance and remaining energy of the neighborhood were integrated in the computation of pheromone concentration. The results of simulation show that compared with LEACH, the algorithm can get a better balance of the energy dissipation and prolong the network lifetime.