Two body processes control sleeping and waking periods. These are called sleep/wake homeostasis and the circadian biological clock. With sleep/wake homeostasis, the longer you are awake, the greater your body senses the need to sleep. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.