One of the sons of Ramses II, Khaemwasset, restored the 5th Kingdom -Old Kingdom Pyramid of Unas in the period 1300 - 1200 BC ... because by his time [19th dynasty?] it was dilapidated. Unfortunately ... today it looks like mostly a pile of rubble, though there’s enough left to tell what the angles were and estimate its original height.
Interesting- I didn’t know about this one since Egypt’s never been my thing :
http://www.ancient-egypt.org/history/old-kingdom/5th-dynasty/unas/pyramid-complex-of-unas/pyramid-of-unas.html
It’s fascinating to think that after this guy died around 2100 BC, the religion changed, from Horus-based to Osiris-based, and at the same time people stopped building pyramids. They seem related.
The pyramid building seem to have been a joint religious-community activity.