The Battle of Miyako Bay (宮古湾海戦 Miyakowan Kaisen) was a naval action on 6 May 1869. It was part of the overall Battle of Hakodate at the end of the Boshin War, a civil war in Japan between Imperial forces of the new government, and samurai rebels that wanted to maintain the feudal caste system.