Moses
Egypt
Herod the Great wanted to kill Jesus. When Joseph, Mary and Jesus fled to Egypt, Herod had no authority there. Even if he could have sent men into Egypt to kill Jesus, they probably could not have found the family.
When word got out that King Herod was after Jesus and his family, they escaped to Egypt. Jesus was thought to be the King of Kings and Herod thought of him as a threat.
God warned Joseph in a dream to take Mary and Jesus to Egypt to avoid the wrath of Herod.
Yes, according to the Bible, Jesus and his family fled to Egypt to escape King Herod's massacre of infants, making Jesus a refugee during that time.
So they could escape from Herod and his soldiers
The wise men warned Mary and Joseph about King Herod's intention to harm the infant Jesus. After visiting the newborn and realizing Herod's true motives, they were divinely instructed in a dream not to return to him. Consequently, Joseph was also warned in a dream to flee to Egypt with Mary and Jesus to escape Herod's decree to kill all male children in Bethlehem. This act was part of Herod's attempt to eliminate any potential rival to his throne.
The angel said this to Joseph in a dream. So they all three fled to Egypt.
In Matthew 2:13-23, Joseph is told in a dream to go to Egypt because King Herod wanted to kill him. If you recall the story of the Magi, they were originally sent by Herod as well, but they avoided him instead of telling him where Jesus was. Herod was jealous that there would be another king rising up among the people, which is why he wanted Jesus dead. So Joseph moved to Egypt to protect his family.
Jesus escaped to Egypt from Bethlehem, not Nazareth. King Herod, who wanted to kill him, ordered the massacre of all infant boys in Bethlehem, prompting Joseph and Mary to flee to Egypt with Jesus to keep him safe.
Mary and Joseph fled to Egypt with Jesus, so Africa.
AnswerIn Matthew's version of the nativity of Jesus, Joseph and Mary fled with Jesus from Bethlehem to Egypt to escape King Herod, who wanted to have Jesus killed. After Herod died and it appeared safe to do so, they began the journey back to their home in Bethlehem, but being warned in a dream turned aside and made the long journey to Nazareth in Galilee instead.