Wireless sensor networks with node calculation ability is weak, node power (battery provides) Limited, routing algorithm of wireless sensor networks should be the energy saving and simple algorithm. Ant colony algorithm shows good search results in the discrete solution space. This paper improves the ant colony optimization algorithm. The paper presents analysis of routing protocols for wireless sensor networks based on improved ant colony optimization algorithm, and the simulation results verify the effectiveness of the improved algorithm.