Since it is a stimulant, caffeine increases alertness and quickness of response, and often can briefly improve mood. It is also known as a mild diuretic. In large doses, it can produce jitters, anxiety, and insomnia. As with any stimulant, the period of enhanced alertness and heightened mood is generally followed by a period of depressed mood and ability.
People are affected by caffeine differently.