When Jacob's daughter, Dinah was abducted and raped by the son of the local king, his sons, Simeon and Levi slaughtered the men of the city. It is important that both Dinah and her brothers were children of Leah, the unloved wife. Thus, this story sets up the next story - the sale of Joseph into Egypt.