Hakodate's size nearly doubled on December 1, 2004, when the town of Minamikayabe (from Kayabe District), and the towns of Esan and Toi, and the village of Todohokke (all from Kameda District), were merged into it.