The development of mobile cloud computing has greatly improved the computing and storage performance of mobile devices. And mobile cloud computing is undoubtedly the necessary way to solve the performance of the process for mobile applications with high performance requirements. However, migrating the mobile applications to the cloud brings about a migration delay, which is intolerable for high real-time demanding applications. This can be technically achieved by expanding mobile cloudlets, co-located with access points (AP). Then, how to deploy the cloudlet to reduce the energy consumption has become a part of major challenges in the current study. In this paper, we propose an energy-efficient cloudlet placement method, named ECPM, to effectively reduce the number of cloudlets, so as to achieve the energy savings. Specifically, the clustering of mobile devices at each time is obtained, and then the cloudlet will move to the clustering to achieve the best use of energy. Finally, the experimental results demonstrate that the proposed method is energy saving.