Bacterial infection is a proliferation of a harmful strain of bacteria on or inside the body. A bacterial infection occurs when bacteria enter your body and begin to multiply. Pneumonia, meningitis, and food poisoning are just a few illnesses that may be caused by harmful bacteria.