Amoxicillin works by inhibiting the synthesis of the bacterial cell wall. It binds to penicillin-binding proteins (PBPs) located inside the bacterial cell wall, preventing proper formation and leading to cell lysis. This action is particularly effective against a variety of aerobic and anaerobic Gram-positive bacteria, as well as some Gram-negative organisms.