An antimicrobial is an agent that kills microorganisms or inhibits their growth. Antimicrobial medicines can be grouped according to the microorganisms they act primarily against. For example, antibiotics are used against bacteria and antifungals are used against fungi. They can also be classified according to their function. Agents that kill microbes are called microbicidal, while those that merely inhibit their growth are called biostatic. The use of antimicrobial medicines to treat infection is known as antimicrobial chemotherapy, while the use of antimicrobial medicines to prevent infection is known as antimicrobial prophylaxis.