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, nasal solution products, opthalmic drugs, eye products, ear products, toxoids, antivenins, immunoglobulins, and skin test antigens).
FORBES: On Autism, Science Beats Celebrity -- For Now