{Conflict of Laws} is a subject taught in almost every law-school around the world, also known as Private International Law. 2) Its typical problems arise from foreign trade and cross-cultural marriages, as are reported about King Solomon in the Bible. 3) Ancient Egypt permitted marriages between bro- ther and sister in conjunction with the law of matrilineal succession. Thus the kingdom of Egypt was inherited by the eldest daughter of the pharaoh, who had to marry her own brother in order to continue the dynasty. 4) If she married an outsider, a new dynasty began, and if the outsider was a foreigner from Israel, it would be the Israelite dynasty. However, such an Israelite dynasty of Egypt might be short-lived, since incestuous marriages were strictly prohibited under biblical law.... --
Conflict of Laws in the Israelite Dynasty of Egypt, by Ed Metzler]
{The warning against going after strange gods is for a very good reason!}