The Ming Dynasty in 1407 founded the imperial library, the Wen Yuan Pavilion. It also sponsored the massive compilation of the Yongle Encyclopedia, containing 11,000 volumes including copies of over 7000 books. It was soon destroyed, but similar very large compilations appeared in 1725 and 1772.