Ritalin is the brand name for methylphenidate, a central nervous system stimulant. It is primarily used to treat Attention Deficit Hyperactivity Disorder (ADHD) and Narcolepsy (a sleep disorder). Ritalin helps increase attention, focus, and impulse control by affecting certain chemicals in the brain and nerves that contribute to hyperactivity and impulse control.