Modafinil is used to improve attention and memory retention, improve cognition and focus, increase productivity, and allow you to focus on a task for hours without feeling tired. People have mainly used Modafinil for depression and when the patient is out of control or a little more severe than usual.