Bone and joint infections occur when bacteria, fungi, or viruses invade bones (osteomyelitis) or joints (septic arthritis). These infections can lead to pain, swelling, and permanent damage if not treated promptly. Individuals with diabetes, weakened immune systems, recent surgeries, or injuries are at higher risk.