In the late 18th century the monarchy and associated institutions were overthrown in the French Revolution. The country was governed for a period as a Republic, until the French Empire was declared by Napoleon Bonaparte. Following Napoleon's defeat in the Napoleonic Wars France went through several further regime changes, being ruled as a monarchy, then briefly as a Second Republic, and then as a Second Empire, until a more lasting French Third Republic was established in 1870.
France was one of the Triple Entente powers in World War I, fighting alongside the United Kingdom, Russia, Italy, Japan, the United States and smaller allies against Germany and the Central Powers.