Joseph got his brothers jobs as shepherds for Pharaoh’s livestock. The famine was getting pretty bad by that time and the Egyptians had already spent all their money on grain from the store Joseph had put aside. They came to him demanding free food, so Joseph took their livestock in lieu of money. The next year, the people had no money and no livestock to trade. Joe decided to take ownership of their land in exchange for food. Now all the land belonged to the Pharaoh, and all the citizens were servants. (Except the priests, of course.) Then Joseph gave everyone some seed and told them to sow the land and give a fifth of their harvests to the Pharaoh. The Egyptians thanked him for being such a nice guy.
Israel died after seventeen happy years in Egypt, at the age of 147. Before he died, he made Joseph promise to bury him with Isaac and Abraham.