Completed just days before the Germans won the Battle of France in June, "Richelieu" fled to Dakar in French West Africa to keep her under French control. There, she came under repeated British attacks that had been intended to either compel the battleship to join the Free French Naval Forces or sink her; these included during Operation Catapult in July 1940 and the Battle of Dakar in September. Damaged in both attacks, the ship was slowly repaired before eventually being turned over to Free French control after the Allied invasion of North Africa in November 1942. After being sent to the United States for repairs and an extensive modernization, the ship served with the British Home Fleet in early 1944 before being deployed to the Eastern Fleet for operations against the Japanese in the Indian Ocean. These included several bombardment operations and in May 1945 she was present during the Battle of the Malacca Strait, though she was too far away to engage the Japanese ships before they were sunk.