 Shunga appeared in the 13th century and continued to grow in popularity despite occasional attempts to suppress them, the first of which was a ban on erotic books known as issued by the Tokugawa shogunate in Kyōhō 7 (1722).Shunga only ceased to be produced in the 19th century when photography was invented.The Chinese tradition of the erotic was also extensive, with examples of the art dating back as far as the Yuan Dynasty (1271–1368).