During the Second World War Dempsey formed a close relationship with Bernard Montgomery. He commanded the 13th Brigade in the Battle of France in 1940, and then spent the next two years training troops in England. He commanded the Eighth Army's XIII Corps in the Allied invasions of Sicily and Italy in 1943. He commanded the Second Army during the Battle of Normandy and made rapid advances in the subsequent campaign in Northern France and Belgium.