Ritalin is the brand name for methylphenidate, a prescription medication commonly used to treat attention-deficit/hyperactivity disorder (ADHD) and certain cases of narcolepsy. When prescribed appropriately, it can help improve attention, focus, and impulse control.