Mered's wife, Bithia, was a daughter of Pharaoh. This made some of Judah's descendants part Egyptian.