Modafinil is a prescription medication used to promote wakefulness and reduce extreme sleepiness caused by narcolepsy, obstructive sleep apnea (OSA), and shift work sleep disorder. It acts as a central nervous system stimulant, often sold under the brand name Provigil, designed to improve alertness, cognitive function, and focus.