Meningitis is a serious illness that causes the membrane surrounding the brain and spinal cord to swell. Viral infections are the cause of most cases, but there are also bacterial and fungal causes. Certain cases resolve themselves in a few weeks without any treatment while others can be life-threatening.