The flu shot works by introducing your body to antigens, which helps your immune system produce antibodies that allow your body to fight infection.