The Meiji Restoration is the modernizing reform the Meiji government carried out from 1868, down to the promulgation of the Constitution of the Empire of Japan in 1889 and the establishment in outline of the modern state. After the black ships, the opened ports shook prices and the unequal treaties galled; the reform party of the strong southwestern domains — Satsuma and Choshu — turned from 'revere the emperor, expel the barbarian' to armed overthrow of the bakufu, which in 1867 surrendered power to the court; in 1868 the Boshin War toppled the Edo shogunate. The new government's program — a rich country, a strong army, the fostering of industry, civilization and enlightenment: in 1869-1871 the domains' registers returned and the domains abolished for prefectures, ending the feudal map for central rule; in 1872 the school system, from 1873 conscription and the land-tax reform; state factories founded, western technology imported, railways and the post built. Samurai discontent lit the Satsuma Rebellion, put down in 1877. In 1889 the imperial constitution was promulgated and in 1890 the diet opened. The Restoration carried Japan into the ranks of modern industrial powers — with the emperor's autocracy and feudal remnants intact — and Meiji Japan turned from here onto the road of external expansion.