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.