Government and (more usually) private academies were established during the Tang dynasty but had begun to decline by the 12th century.
Government were established during the Tang dynasty. (more usually) private academies were established during the Tang dynasty. Government had begun to decline by the 12th century. (more usually) private academies had begun to decline by the 12th century.