Subunit vaccines are created by isolating or synthetically producing crucial components of a pathogen. The antigens used in these vaccines are often purified from the pathogen itself or produced using recombinant DNA technology. This method involves inserting the gene coding for the antigen into a host cell, such as yeast or bacteria, which then produces the antigen in large quantities. These antigens are then purified and used to formulate the vaccine.