The two countries were at war, with some very limited naval combat during the Anglo-Russian War (1807–1812). In 1812 Britain and Russia became allies against Napoleon in the Napoleonic Wars.