it is basically making our own cells produce antigens that the immune system can then pick up. Remember mRNA, the molecule that tells the protein production facilities in your cells what proteins to make? Basically, you inject someone with mRNA that will make a few of your cells make viral antigens, which the cell then showcases to the immune system. The immune system is pretty alarmed by this and will create defenses against this antigen.