The discontented Parisian population was ripe for an uprising, and on 22 February 1848 it duly came when troops fired on demonstrators. Louis Philippe abdicated and was replaced by a Second Republic. Nationwide elections returned a conservative government which opposed any reforms. The Parisian workers rose again only to be massacred by General Cavaignac, with some 5,000 people being killed in the fighting and subsequent reprisals. Fresh elections were held at the end of 1848.
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.
Greater Paris metropolitan area, with a total GDP higher than Australia, is the largest financial and business center of continental Europe (on par with London), harboring more than 30% of France's white-collar population, as well as more than 40% of the headquarters of French companies, with the largest business district of Europe (La Défense), and the 2nd largest stock exchange in Europe (Euronext).
Under the rule of Philippe Auguste, who became king in 1180, a number of major building works were carried out in Paris. He built a new city wall and began the construction of the Louvre Palace, as well as paving streets and establishing a covered market at Les Halles (where it would remain until 1969).
The furious crowd began attacking the palace and were only placated when Louis himself appeared and agreed to return to Paris with his family. The royal family were reduced to virtual prisoners in the Tuileries. They tried to escape on 20 June 1791 but were caught and returned to Paris as captives.
After the restoration of civilian rule and the proclamation of the Fourth Republic in 1946, Paris made a rapid recovery from the war, aided by its lack of much physical damage. Like the rest of France, however, it was caught up in the bloody but unsuccessful wars against nationalist guerrillas in Indochina and Algeria in the 1950s and 1960s. During the Algerian war of independence, independentists detonated bombs in Paris.
In 1900 Paris hosted the 1900 Summer Olympics. In late August 1944 after the battle of Normandy, Paris was liberated when the German general Dietrich von Choltitz surrendered after skirmishes to the French 2nd Armoured Division commanded by Philippe de Hauteclocque backed by the Allies.
A new wall was built around Paris in 1785, this time to create a customs barrier for taxation purposes. Not surprisingly, this was a very unpopular innovation. The disastrous harvest of 1788 brought matters to a head, with widespread hunger across France and food riots in Paris.
In the aftermath of the revolt, Charles V of France took steps to guard against a recurrence; a new city wall was constructed to guard against exterior enemies while the grim fortress of the Bastille was built to control the city's restless population. Another revolt, this time over excessive taxation, broke out in 1382 under Charles VI of France but was quickly and violently suppressed. The city was subsequently punished by having its earlier privileges withdrawn.
The area of modern Paris has been inhabited since at least the fourth millennium BC, although little is known about these early inhabitants. The first known permanent settlement on the site was founded about 250 BC by a Celtic tribe called the Parisii, who established a fishing village on the Seine island that was later to become the Ile de la Cité. This was known as Lutetia, a name first recorded by Julius Caesar in his Gallic Wars.