Bataan then sailed to the Boston Naval Shipyard on 30 October. Following two weeks of repairs, she was converted to a troop transport in preparation for Operation Magic Carpet, the return of soldiers from overseas. "Bataan" sailed for Europe on 21 November and moored in Naples harbor on the 29th where she embarked 2,121 Army officers and men. Arriving at Norfolk on 8 December, the troop-carrying warship then transported 890 Italian prisoners of war back to Naples, arriving there on 23 December. The following day, "Bataan" steamed out of the Bay of Naples with 2,089 Army troops embarked and arrived at Norfolk on 2 January 1946.