As the corona virus (COVID-19) pandemic ravages socio-economic activities in addition to devastating infectious and fatal consequences, optimal control strategy is an effective measure that neutralizes the scourge to its lowest ebb. In this paper, we present a mathematical model for the dynamics of COVID-19, and then we added an optimal control function to the model in order to effectively control the outbreak. We incorporate three main control efforts (isolation, quarantine and hospitalization) into the model aimed at controlling the spread of the pandemic. These efforts are further subdivided into five functions; u 1 (t) (isolation of the susceptible communities), u 2 (t) (contact track measure by which susceptible individuals with contact history are quarantined), u 3 (t) (contact track measure by which infected individualsare quarantined), u 4 (t) (control effort of hospitalizing the infected I 1 ) and u 5 (t) (control effort of hospitalizing the infected I 2 ). We establish the existence of the optimal control and also its characterization by applying Pontryaging maximum principle. The disease free equilibrium solution (DFE) is found to be locally asymptotically stable and subsequently we used it to obtain the key parameter; basic reproduction number. We constructed Lyapunov function to which global stability of the solutions is established. Numerical simulations show how adopting the available control measures optimally, will drastically reduce the infectious populations.