Selegiline is a medication used to treat certain mental health conditions, particularly Parkinson's disease and depression. It works by increasing the levels of certain chemicals in the brain that help regulate mood and movement.