When Esau was 40 years old, he married Judith daughter of Beeri the Hittite, and Basemath daughter of Elon the Hittite.