Modafinil is a drug to promote wakefulness prescribed to treat sleep disorders like sleep apnea, work sleep disorder, and excessive sleepiness problem. It works by stimulating the brain to promote wakefulness. Although the experts are not sure about the mechanism of the drug, many believe that it may work by increasing the amount of dopamine in the brain.