The date of Candlemas is established by the date set for the Nativity of Jesus, for it comes forty days afterwards. Under Mosaic law as found in the Torah, a mother who had given birth to a boy was considered unclean for seven days; moreover she was to remain for three and thirty days "in the blood of her purification." Candlemas therefore corresponds to the day on which Mary, according to Jewish law, should have attended a ceremony of ritual purification (). The Gospel of Luke 2:22–39 relates that Mary was purified according to the religious law, followed by Jesus' presentation in the Jerusalem temple, and this explains the formal names given to the festival, as well as its falling 40 days after the Nativity.