When Esau was 40 years old, he got married to Judith. She was the daughter of Beeri the Hittite. He also married Basemath. She was the daughter of Elon the Hittite.