Abstract Cloud computing is a modern technology which contains a network of systems that form a cloud. Energy conservation is one of the major concern in cloud computing. Large amount of energy is wasted by the computers and other devices and the carbon dioxide gas is released into the atmosphere polluting the environment. Green computing is an emerging technology which focuses on preserving the environment by reducing various kinds of pollutions. Pollutions include excessive emission of greenhouse gas, disposal of e-waste and so on leading to greenhouse effect. So pollution needs to be reduced by lowering the energy usage. By doing this, utilization of resources should not be reduced. With less usage of energy, maximum resource utilization should be possible. For this purpose, many green task scheduling algorithms are used so that the energy consumption can be minimized in servers of cloud data centers. In this paper, ESF-ES algorithm is developed which focuses on minimizing energy consumption by minimizing the number of servers used. The comparison is made with hybrid algorithms and most-efficient-server first scheme. Keywords: Cloud computing, Green computing, Energy-efficiency, Green data centers and Task scheduling.