Ritalin, also known as methylphenidate, is a central nervous system stimulant that is commonly used to treat attention deficit hyperactivity disorder (ADHD) and narcolepsy. It works by increasing the levels of certain neurotransmitters in the brain, which helps to improve focus, attention, and impulse control in individuals with ADHD.