Following the Meiji Restoration there was a process of transformative institutional reforms in Japan. In 1869 feudalism was abolished, and the three hundred fiefs were surrendered to the government and turned into prefectures, under the control of an appointed governor. Taxation was centralized, and a modern bureaucratic state replaced the old feudal one. In 1869 the equality of all social classes before the law was introduced, and restrictions on internal migration and trade were abolished. The samurai class was abolished, though not without having to put down some rebellions. Individual property rights on land were introduced, and people were allowed freedom to enter and practice any trade. The state became heavily involved in the construction of infrastructure.