Methylphenidate works by increasing the levels of dopamine and norepinephrine in the brain. These neurotransmitters play a key role in attention and behavior regulation. By enhancing their activity, methylphenidate helps improve focus, attention, and control over impulsive behaviors.