In this article, we studied the fractional dynamics of the most dangerous deathly disease which outbreaks have been recorded all over the world, called 2019-nCOV or COVID-19. We used the numerical values of the given parameters based on the real data of the 2019-nCOV cases in Spain for the time duration of 25 February to 9 October 2020. We performed our observations with the help of the Atangana-Baleanu (AB) non-integer order derivative. We analysed the optimal control problem in a fractional sense for giving the information on all necessary health care issues. We applied the Predictor-Corrector method to do the important graphical simulations. Also, we provided the analysis related to the existence of a unique solution and the stability of the proposed scheme. The aim and the main contribution of this research is to analyse the structure of novel coronavirus in Spain at different transmission rate and to indicate the danger of this deathly disease for future with the introduction of some optimal controls and health care measures. (C) 2021 THE AUTHORS. Published by Elsevier BV on behalf of Faculty of Engineering, Alexandria University.