The seventh-century monastery of St. Phoibammon was built on the upper terrace of the temple of Hatshepsut at Deir el-Bahri.