At the same time, Paris acquired a less savoury reputation as the "sin capital of Europe", with hundreds of brothels, revues and risqué cabarets such as the famous Moulin Rouge. The city also acquired its metro system, opened in 1900.
The original Latin name of Paris was Lutetia, known in French as Lutèce. The name was later changed into Paris, based on the name of the Gallic parisi tribe.
The victor was, to the surprise of many, Louis-Napoleon Bonaparte - the nephew of the late Emperor. He won by an overwhelming majority (receiving 75% of the votes cast) but was not content with being a mere president. On 2 December 1851 he seized power in a coup, declared himself the Emperor Napoleon III and settled in the Tuileries Palace.
The city is the hub of France's motorway network, and is surrounded by an orbital road, the Périphérique. On/off ramps of the Peripherique are called 'Portes', as they correspond to the city gates. Most of these 'Portes' have parking areas and a metro station, where non-residents are advised to leave cars. Traffic in Paris is notoriously heavy, slow and tiresome.
The lines stayed mostly static for the next four years, with Paris experiencing the occasional bombardment from enemy aircraft and the giant "Big Bertha" long-distance artillery guns. The city's hedonistic life survived for a while before being subdued by the bloodshed on the front and the impact of rationing and a devastating flu epidemic in 1916. The war was finally ended by the Armistice of 11 November 1918, signed at Compiegne to the northeast of Paris.
The following month, more than 2,000 people were massacred in Paris as revolutionary mobs hunted down and killed anyone seen as an opponent of the new order. The monarchy was formally abolished on 22 September 1792, "Day I of Year I of the French Republic."
Several schools on the Left Bank were grouped together into the Sorbonne, which counts Albertus Magnus and St. Thomas Aquinas among its early scholars. In the Middle Ages Paris prospered as a trading and intellectual nucleus, interrupted temporarily when the Black Death struck in the 14th century. Under the reign of King Louis XIV, the Sun King, from 1643 to 1715, the royal residence was moved from Paris to nearby Versailles.
Henri III had nominated Henri of Navarre, a Protestant, as his heir. The new king, Henri IV, converted to Catholicism in 1594 with the declaration that "Paris is well worth a mass," thus convincing the Parisians to accept him as their king. He undertook a number of major public works in the city but faced constant danger from religious fanatics on both sides, particularly after granting religious tolerance to Protestants under the Edict of Nantes. After surviving at least 23 assassination attempts, he fell victim to a Catholic fanatic on 14 May 1610.
As early as the 12th century, the distinctive character of the city's districts was emerging. The Ile de la Cité, on which the Cathedral of Notre Dame de Paris was built in 1163, was the centre of government and religious life; the Left Bank was the centre of learning, focusing on the various Church-run schools established there; and the Right Bank was the centre of commerce and finance. A league of merchants, the so-called Hanse Parisienne, was established and quickly became a powerful force in the city's affairs.
The city emerged into an energetic but restless interwar period, enlivened by the arrival of glamorous émigrés such as Josephine Baker. It was a troubled political period, however, especially when the Great Depression hit Paris.
Roman rule in northern Gaul effectively collapsed in the 5th century. In 451 the region was invaded by Attila the Hun, prompting fears that Paris would be attacked. According to legend, the city was saved by the piety of Sainte Geneviève and her followers, whose prayers for relief were answered when Attila's march turned away from Paris to the south. Ste Geneviève remains Paris' patron saint to this day.