 Similarly, Joseph was warned in a dream that Herod intended to kill Jesus, so he and his family fled to Egypt.When Herod realized he had been outwitted, he gave orders to kill all boys of the age of two and under in Bethlehem and its vicinity.Joseph and his family stayed in Egypt until Herod's death, then moved to Nazareth in Galilee to avoid living under Herod's son Archelaus.