Modafinil, marketed under the brand name Provigil, is a prescription medication designed to enhance wakefulness and cognitive function. It primarily treats sleep disorders such as narcolepsy and obstructive sleep apnea, promoting alertness and reducing excessive daytime sleepiness.