When a drought came upon Judah, Jacob sent 10 of his sons to Egypt in search of food. They found food and their long-lost brother Joseph, who was in charge of food distribution. Eventually, Jacob moved his entire family to Egypt, where they became a small nation within a nation.