尊王攘夷 was a yojijukugo (four-character compound) phrase used as the rallying cry and slogan of a political movement in Japan in the 1850s and 1860s during the Bakumatsu period. Based on Neo-Confucianism and Japanese nativism, the movement sought to overthrow the Tokugawa shogunate and restore the power of the Emperor of Japan. During the Spring and Autumn period of China, Chancellor Guan Zhong of Qi initiated a policy known as Zunwang Rangyi (尊王攘夷 ; lit. "Revere the King, Expel the Barbarians"), in reference to the Zhou kings. Adopting and adhering to it, Duke Huan of Qi assembled the Chinese feudal lords to strike down the threat of barbarians from China. For it, Confucius himself praised Guan Zhong for the preservation of Chinese civilization through the example of the contrast in the hairstyles and clothing styles between them and barbaric peoples. Through the Analects of Confucius, the Chinese expression came to be transmitted to Japan as sonnō jōi. The origin of the philosophy as used in Japan can be traced to works by 17th century Confucian scholars Yamazaki Ansai and Yamaga Sokō, who wrote on the sanctity of the Imperial House of Japan and its superiority to the ruling houses of other nations. These ideas were expanded by Kokugaku scholar Motoori Norinaga, and seen in Takenouchi Shikibu's theory of absolute loyalty to the Emperor of Japan (尊皇論 sonnōron), that implied that less loyalty should be given to the ruling Tokugawa shogunate. Mitogaku scholar Aizawa Seishisai introduced the term sonnō jōi into modern Japanese in his work Shinron in 1825, where sonnō was regarded as the reverence expressed by the Tokugawa Shogunate to the emperor and jōi was the proscription of Christianity. With the increasing number of incursions of foreign ships into Japanese waters in the late 18th and early 19th century, the sakoku ("national seclusion") policy came increasingly into question. The jōi "expel the barbarians" portion of sonnō jōi, changed into a reaction against the Convention of Kanagawa of 1854, which opened Japan to foreign trade.