A wide variety of anti-infective medications are available for the treatment of infections caused by bacteria, fungus, or a virus. These medicines operate by slowing or stopping the reproduction of bacteria, virus, or fungus cells so that the immune system can eliminate the infection naturally. They are normally taken for a cycle of treatment lasting one or two weeks to ensure the entire infection is destroyed.