An energy efficient mobile agent routing algorithm(EEMAA) based on the infection sphere is presented. This algorithm uses the infection sphere to reduce the number of nodes by researching and restoring the energy efficient route from the processing node to the target nodes, which can reduce energy consumer of the networks. A new restore rule for the failure optimal route is presented. The optimal route can restore quickly in the local of fail nodes and most of the information of the original optimal route can be reserved by using this rule. Simulation results show that the proposed approach can keep away from the nodes with less residual energy and can make the energy of each node on the optimal route overall decline. At the same time, this algorithm can restore the optimal route quickly in the local of fail nodes.