The story of Joseph is a familiar one (Read Genesis 37). His jealous brothers were very bothered by their "goody goody" favored brother, and given the opportunity, they were only too ready to vent their anger and hatred. Reuben, the oldest advised against killing him.
Judah suggested a plan that would rid them of their brother while making a profit. They sold him as a slave, a fate worse than death.