Amoxicillin fights bacteria and stops them from growing by preventing them from forming cell walls. This kills the bacteria and eventually eradicates the infection. Amoxicillin and other antibiotics are not known to be effective against viral infections, such as colds and flu.