The mRNA is misinformation that tells the cell to produce the spike protein of coronavirus on its cell membrane. Those membranes are how cells interact with their environment. Later immune cells interact with those same spike proteins to identify the right antibodies to fight off the foreign, spike proteins. All without ever actually exposing the patient to coronavirus.
Good luck.