After his baptism, Jesus went to the desert to think about and prepare for his ministry. He spent forty days and forty nights in the desert where he was tempted on three occasions by the Devil.
Jesus goes into the desert to fast for 40 days and prepare himself to do his work. At this time, Satan comes to him, offering the same three temptations, at least as Christians understand it ...