By the end of July 1904, the Japanese army had pushed down the Liaodong peninsula and was at the outer defenses of Port Arthur. The fact that Japanese forces had closed to within artillery range of the harbor in early August 1904 led directly to the naval Battle of the Yellow Sea which solidified Japan's command of the sea, where her fleets continued to blockade the harbor. Virtually all the battles of the war until July 1904 were strategic battles for territorial gain or position leading to the investment and siege of the port city.