By 1890 Japan was the first Asian country to adopt a written constitution, and it created a constitutional monarchy with an elected parliament, the Diet, and an independent judiciary. These changes were decisive factors in enabling Japan to be the primary beneficiary from the Industrial Revolution in Asia.