Napoleon Bonaparte (1769–1821) was a French military commander and emperor who rose from modest Corsican origins to dominate European affairs in the early nineteenth century. He distinguished himself as a general during the French Revolution, seized power in the 1799 coup of 18 Brumaire, and crowned himself Emperor of the French in 1804. A brilliant tactician, he won a string of celebrated victories—Austerlitz chief among them—and at his height controlled or influenced much of continental Europe, while leaving a lasting civil legacy in the Napoleonic Code, which reshaped legal systems far beyond France. His disastrous invasion of Russia in 1812 shattered his army and momentum, leading to his abdication and exile to Elba in 1814. He returned for a final hundred days in 1815 before his decisive defeat at Waterloo, after which he was exiled to the remote island of Saint Helena, where he died in 1821.