Ritalin is a central nervous system stimulant with methylphenidate as its active ingredient. It is used in the treatment of attention deficit disorder (ADD), attention deficit hyperactivity disorder (ADHD), and narcolepsy. Methylphenidate works by influencing chemicals in the brain and nerves that are involved in hyperactivity and impulse control.