The document proposes an energy-aware task scheduling algorithm using ant colony optimization for cloud computing. It aims to minimize energy consumption in datacenters by scheduling tasks efficiently across virtual machines and physical hosts. The algorithm uses concepts from ant colony optimization to probabilistically determine good task-to-resource allocations. The results show that the proposed approach reduces energy consumption by 22% compared to a first-come, first-served scheduling approach.