While "Caio Duilio" was in dock for repairs, the British Force H departed from its normal role as a convoy escort in the western Mediterranean in early February to attack Genoa. Admiral James Somerville's surface ships fired over a thousand shells at the port, and aircraft of the carrier dropped magnetic mines in the harbor. Five ships were sunk, but "Caio Duilio" was not hit in the attack. During the attack, "Caio Duilio"s anti-aircraft battery fired some 8,000 rounds at the British spotter aircraft. Repair work was completed by May, and on 16 May she was back in Taranto in the 1st Squadron.