Nevertheless, in early August, "Duke of York" was assigned to Task Force 37, along with four aircraft carriers and her sister-ship "King George V". From 9 August, TF 37 and three American carrier task forces conducted a series of air raids on Japan, which continued until 15 August when a surrender came into effect. After the conclusion of hostilities, "Duke of York", alongside her sister-ship, "King George V", participated in the surrender ceremonies that took place in Tokyo Bay. The following month "Duke of York" sailed for Hong Kong, to join the fleet that assembled there to accept the surrender of the Japanese garrison. She was the flagship of the British Pacific Fleet when the Japanese surrendered, and remained so until June 1946, when she returned to Plymouth for an overhaul.