Elijah has performed great acts and, as a consequence, has angered the queen. She has issued a death sentence. He's fleeing for his life.
And he gives up. He prays to the Lord, "I've had enough. I'm ready to die," and he lies down ready for his prayer to be answered.
Instead, the Lord sends a messenger to him who provides him with food and also encouragement.
Elijah, after this encounter, is able to resume his vocation. (A few verses later, Elijah will hear the word of God.)