Emperor Meiji ruled Japan from 1867 to 1912. When he came to power, Japan was militarily weak and primarily agricultural, but through reforms he established a modern national education system, constitution, and built up industry, technology, railways, and military strength. By the end of his rule, Japan had transformed into a highly developed and industrialized world power with a centralized government and elected parliament.