While under Halsey's command as the Third Fleet, the fleet operated in and around the Solomon Islands, the Philippines, Formosa, Okinawa, the Ryukyu Islands, and the Japanese Home Islands, first with the battleship and, from May 1945 to the end of the war, the battleship as its flagship. As the Third Fleet, it took part in the Palau Islands campaign of September–November 1944 and the Philippines campaign of 1944–1945, defeated the Imperial Japanese Navy in two of the four major actions – the Battle of the Sibuyan Sea and the Battle off Cape Engaño – that made up the Battle of Leyte Gulf in October 1944, encountered the damaging Typhoon Cobra in December 1944, endured Typhoon Connie in June 1945, and took part in the war's final operations in Japanese waters in the summer of 1945, launching air attacks on Tokyo, the naval base at Kure, and the island of Hokkaidō and bombarding several Japanese coastal cities with naval gunfire.