, formerly the offices of the
Hakodate bugyō On January 27, 1869, the independent "Republic of Ezo" was proclaimed, with its government structure based on the
United States.
Suffrage was limited to the samurai class. Votes were cast through
open ballots and resulted in the election of Enomoto Takeaki as
sosai, an office variously translated as
president or
director-general, and Matsudaira Tarō as
fuku-sosai (
vice-president or assistant governor-general). Some
cabinet members were elected by the troops as well;
Arai Ikunosuke was chosen as
kaigun-bugyō (Navy minister) and
Ōtori Keisuke as
rikugun-bugyō (Army minister). This was the first
election ever held in Japan, where a feudal structure under an Emperor with military
warlords was the norm. Through Hakodate magistrate
Nagai Naoyuki, attempts were made to reach out to foreign legations present in
Hakodate to obtain international diplomatic recognition. Notably, due to the United States' involvement through Commodore Matthew Perry's expedition to forcefully end Japan's 220-year-old
policy of isolation and open ports to American trade, the Western world had limited interest in supporting a breakaway state over the new Meiji government, which offered more stability and potential cooperation. On the same day, a celebration of the Ezo territory all-island settlement (Ezo territory declaration ceremony) was held, proclaiming the establishment of a provisional government with Enomoto as president. The treasury included 180,000 gold
ryō coins Enomoto retrieved from
Osaka Castle following
shōgun Tokugawa Yoshinobu's precipitous departure after the
Battle of Toba–Fushimi in early 1868. , turning towards
Matsudaira Tarō During the winter of 1868–1869, the defences around the southern peninsula of
Hakodate were enhanced, with the
star fortress of
Goryōkaku at the centre. The land force was organised under a joint Franco-Japanese command,
commander-in-chief Ōtori Keisuke being seconded by the French captain
Jules Brunet. The troops were divided into four
brigades, each commanded by a French officer (
Arthur Fortant,
Jean Marlin,
André Cazeneuve and
François Bouffier). Each brigade was in turn divided into two
battalions, and these into four
companies. Brunet demanded (and received) a signed personal pledge of loyalty from all officers and insisted they assimilate French ideas. An anonymous French officer wrote that Brunet had taken charge of everything: ==Defeat by Imperial forces and aftermath==