Buddhist architecture and sculpture thrived in the Sui and Tang dynasty. Of which, the Tang Dynasty was particularly open to foreign influence. Buddhist sculpture returned to a classical form, inspired by Indian art of the Gupta period. Towards the late Tang dynasty, all foreign religions were outlawed to support Taoism.