Subunit vaccines contain only parts of the virus or bacteria, or subunits, which stimulate the immune system. These parts are usually proteins or sugars. Since they do not contain live components, they are considered safer and have fewer side effects.