An infection occurs when a microorganism — such as bacteria, fungi, or a virus — enters a person’s body and begins multiplying. Infections can have a variety of effects, ranging from mild to severe.