Giving up the palace to temples was an important social phenomenon, which,in some degree, reflected the enthusiasms for Buddhism of the royal household in Tang dynasty. Through textual researches on the layout which was centered by towers to the layout of multiple courtyards, the paper points out that giving up the palace to temples played an important role in the evolution of layouts of ancient temples.