Methylphenidate is a prescription medication primarily used to treat Attention Deficit Hyperactivity Disorder (ADHD) and narcolepsy. It is a central nervous system stimulant that affects chemicals in the brain and nerves that contribute to hyperactivity and impulse control.