David and the nation of Israel have been facing a three year long drought, something completely devastating to a culture like theirs in that time. In the midst of that drought, the people lose heart but David cries out to God as he writes Psalm 4.