According to inscriptions describing his architectural work, Sheshonk I (r. 943–922 BC), founder of the Twenty-second Dynasty, constructed a forecourt and pylon of the temple of Ptah, a monument that he named the "Castle of Millions of Years of Sheshonk, Beloved of Amun". The funerary cult surrounding this monument, well known in the New Kingdom, was still functioning several generations after its establishment at the temple, leading some scholars to suggest that it may have contained the royal burial chamber of the king. Sheshonk also ordered the building of a new shrine for the god Apis, especially devoted to funeral ceremonies in which the bull was led to his death before being ritually mummified.