Task Scheduling (TS) is used to improve the performance of Cloud Computing (CC) and optimizing the Quality of Service (QoS) of the cloud. The main objective of this research work is to optimize the TS by minimizing the MakeSpan (MS) and energy consumption. The scheduling issues are overcome by Modified Mean Grey Wolf Optimization algorithm (MGWO) and it enhances the overall performance of the system. In this MGWO, the leadership hierarchy is simulated by four grey wolves such as alpha, beta, delta and omega for the major steps like hunting, searching, encircling and attacking the prey. Here, hunting and encircling modified using the mean value to improve the effectiveness of GWO. CloudSim toolkit is used for evaluating the objective of the Modified-MGWO in standard workload (left-skewed & right-skewed dataset). The proposed Modified-MGWO algorithm reduced energy consumption nearly 10% when compared with the existing algorithms such as Particle Swarm Optimization (PSO) and standard GWO. Moreover, the MS of the Modified-MGWO method reduced nearly 13% when compared with existing methods for both datasets.