Meningitis is inflammation of the lining around the brain and spinal cord. It is usually caused by an infection. The infection occurs most often in children, teens, and young adults. Also at risk are older adults and people who have long-term health problems, such as a weakened immune system. There are two main kinds of meningitis: Viral meningitis is fairly common.