underway and arrived at Kure on 13 May 1945. May–July 1945 After arriving at Kure, I-47 underwent repairs that lasted until late June 1945. During this time, she probably had a snorkel installed. When her repairs were complete, she departed Kure on 30 June 1945 for work-ups in the Seto Inland Sea. She arrived at Hikari on 5 July 1945 and embarked kaitens with dummy warheads and their pilots to practice kaiten launches in the vicinity of Hikari. She returned to Kure on 13 July 1945 and refueled from other submarines located there. She moved from Kure to Hikari on 17 July and embarked six kaitens and their pilots, then conducted several test dives off Hikari on 18 July 1945. Fifth kaiten mission On 19 July 1945, I-47 became part of the Tamon Kaiten Group along with the submarines I-53, I-58, , , and . She got underway that day, headed for a patrol area east of Okinawa. She arrived in her patrol area on 23 July 1945. By 29 July she had made contact with three Allied ships but had launched no kaitens, and 6th Fleet Headquarters ordered that day to proceed to a new patrol area northeast of the Philippine Islands. On 30 July 1945, a typhoon struck the area. Unable to finish recharging her batteries, I-47 had to remain on the surface during the storm. Large waves swamped her several times before she finally could submerge. When she surfaced in heavy seas on 1 August 1945, one of her kaitens was washed overboard, and it collided with her after it went over the side. Her remaining kaitens developed leaks. She was recalled to Japan on 6 August and arrived at Hikari on 13 August 1945, where she disembarked the kaiten pilots and the five kaitens that remained aboard. She then proceeded to Kure, which she reached on 14 August 1945. End of war On 15 August 1945, World War II ended with the Hirohito surrender broadcast announcing the cessation of hostilities between Japan and the Allies. Not willing to accept defeat, I-47′s crew decided to refuse to surrender and to try to reach Japanese-held Rabaul on New Britain in the Bismarck Archipelago, where they hoped to continue to fight. I-47 crewmen boarded a kaibokan escort vessel in the harbor at Kure and confiscated its food supply and several rifles and machine guns. They gave up on their