A lumbar puncture may be used to collect a sample of cerebrospinal fluid in order to detect the presence of certain types of cancer or infection. Lumbar punctures may also be used to inject medications, such as spinal anesthesia or chemotherapy drugs.