The Republic of Ezo, a separatist Japanese state, was established on the island of Ezo, Japan.

This was the first attempt by any Japanese government to establish a democratic government. It lasted five months before the Empire of Japan annexed its territories.

Source