Answer:
The Hyksos found refuge in the port city of Avaris and managed to establish a strong power base during the decline of the 13th Dynasty of the Middle Kingdom. Most likely, they were traders who were at first welcomed at Avaris, prospered, and sent word to their friends and neighbors to come to join them, resulting in a large population that was able to finally exert political and then military power. And then with this, they invaded Egypt after taking over the parts of Syria that the Egyptians ruled and then went and took over some of Egypt.
hope I was help.