Djoser is linked to Khasekhemwy, the last king of the Second Dynasty of Egypt, through his wife Queen Nimaethap (Nimaat-hap) via seals found in Khasekhemwy's tomb and at Beit Khallaf. The seal at Abydos names Nimaat-hap as the "mother of the king's children, Nimaat-hap". On mastaba K1 at Beit Khallaf, the same person is mentioned as the "mother of the dual king". Dating of other seals at the Beit Khallaf site place them to the reign of Djoser. This evidence suggests that Khasekhemwy is either the direct father of Djoser or that Nimaat-hap had him through a previous husband. German Egyptologist Gunter Dreyer found Djoser's sealings at Khasekhemwy's tomb, further suggesting that Djoser was the direct successor of Khasekhemwy and that he finished the construction of the tomb.