The ability to change your nation is unlocked once you reach the Medieval Age. You will have access to the Revolution feature which allows you to change your current nation. You can access this feature by tapping your Town Center > Revolution.

The cost of Revolution is 600 Crowns the first time and 1000 Crowns each time after that, and uses all available Citizens.