This paper is a new step in helping the treatment of coronavirus by improving the performance of chloroquine drug. For this purpose, we propose a complex of chloroquine drug with graphene nanoribbon (GNR) scheme. We compute the structural and electrical properties and absorption of chloroquine (C18H26ClN3) and GNR complex using the density functional theory (DFT) method. By creating a drug and GNR complex, the density of states of electrons increases and the energy gap decreases compared to the chloroquine. Also, using absorption calculations and spectrums such as infrared and UV-Vis spectra, we showed that GNR is a suitable structure for creating chloroquine drug complex. Our results show that the dipole moment, global softness and electrophilicity for the drug complex increases compared to the non-complex state. Our calculations can be useful for increasing performance and reducing the side effects of chloroquine, and thus can be effective in treating coronavirus.