Meningitis is an infection of the protective membranes that surround the brain and spinal cord (meninges). It can affect anyone, but is most common in babies, young children, teenagers and young adults. Meningitis can be very serious if not treated quickly.