Thimerosal prevented bacteria and fungi from growing in the vaccine (and many other products, for example while it is no longer used in vaccines it is still used in tatttoo inks, nasalsolution products, opthalmic drugs, eye products, ear products, toxoids, antivenins, immunoglobulins, and skin test antigens).