A revolt broke out on 18 March when government forces were driven out of Montmartre. The government regrouped at Versailles, while on 26 March the Commune of Paris - effectively a miniature socialist republic - was proclaimed in the city.
Paris held out for four months, by which time starvation had taken hold and the population had been reduced to eating rats. The city finally surrendered on 28 January 1871 with punitive terms being inflicted on the defeated French. They were, in fact, unacceptably punitive in the eyes of many Parisians, who saw the peace treaty signed by the government of Adolphe Thiers as a betrayal.
The government agreed an armistice with the invaders and moved south to Vichy, while Paris remained - along with two thirds of France - under German occupation. Hitler himself arrived on 23 June to inspect his latest conquest and, in a famous piece of film footage, seem to dance a triumphant jig below the Eiffel Tower (this effective piece of Allied propaganda was created by film maker John Grierson, who looped a few frames of Hitler stomping his foot once in delight, making the dictator appear to dance).
By this time, Paris was a typically crowded early medieval city with timber buildings alongside surviving Roman remains. According to the chronicler Geoffrey of Tours, it suffered a disastrous fire in 585. The city grew beyond the boundaries of the Ile, with suburbs being established on both banks of the river.
Napoleon's brief return from exile in 1815 saw him pass through Paris, en route to destiny at Waterloo on 18 June. His replacements, the restored Bourbon monarchs Louis XVIII (1814, 1815-1824) and Charles X (1824-1830), managed between them to provoke yet another revolution in Paris, confirming the saying that the Bourbons could "learn nothing and forget nothing."
Paris is served by two principal airports: Orly Airport, which is south of Paris, and the Charles De Gaulle International Airport in nearby Roissy-en-France. A third and much smaller airport, at the town of Beauvais, 70km (45 miles) to the north of the city, is used by charter and low-cost airlines. Le Bourget airport nowadays only hosts business jets, air trade shows and the aerospace museum.
Paris is densely covered by a metro system, the Métro, as well as by a large number of bus lines. This interconnects with a high-speed regional network, the RER, and also the train network: commuter lines, national train lines, and the TGV (or derivatives like Thalys or Eurostar for specific destinations). There are two tangential tramway lines in the suburbs: Line T1 runs from Saint-Denis to Noisy-le-Sec, line T2 runs from La Défense to Issy. A third line along the southern orbital road is currently under construction.
Although the Third Republic was widely disliked for its political instability and corruption, it did manage to deliver a golden age - a belle epoque - for Paris. The city acquired many distinctive new monuments and public buildings, foremost among them the Eiffel Tower, constructed for the World Exhibition of 1889. It was renowned as a centre for the arts, with the Impressionists taking their inspiration from its new vistas.
The arrival in Paris of the Industrial Revolution prompted the city's breakneck growth, with migrant workers arriving from the countryside on newly-constructed railway lines. By now its population was over 900,000 people, making it one of the largest cities in Europe and far surpassing any other city in France (the next largest, Lyon and Marseille, had only about 115,000 each).
In 885 the city was faced with a massive Viking invasion force, said to have numbered 700 ships and 30,000 men. Its inhabitants sought the assistance of Robert the Strong, Count of Anjou, and his son Odo, Count of Paris. Odo led the defence of the city in opposition to a ten-month Viking siege in 885 and became co-ruler of the Empire with Charles the Simple. His son Hugh Capet was elected King of France (or Francia - literally the land of the Franks) in 987. He made Paris his capital and founded a long-lasting dynasty, the Capetians.
Algeria gained its independence in 1962 and over 700,000 French colonists and pro-French Algerians migrated to the mother country, many to Paris. In response, the government built huge new residential suburbs - the now-notorious banlieues of Paris - which rapidly gained a reputation for soulless architecture, deprivation, racial tension and crime.
Napoleon's rule came to an abrupt end when he declared war on Prussia in 1870, only to be defeated and captured at Sedan. He abdicated on 4 September, with a Third Republic proclaimed that same day in Paris. On 19 September the Prussian army arrived at Paris and besieged the city. Major city landmarks were pressed into military service, with the Louvre being turned into an arms factory, the Gare d'Orleans (now the Gare d'Austerlitz) into a balloon workshop and the Gare de Lyon into a cannon foundry.
Matters came to a head on 23 August 1572 with the St Bartholomew's Day Massacre, when Catholic mobs killed an estimated 3,000 Protestants on the instructions of King Charles VIII. His successor, King Henry III, attempted to find a peaceful solution but the city's population turned against him and forced him to flee in May 1588. The following year, he was assassinated by a fanatical Dominican monk, bringing the Valois line to a premature end.
Traditionally Paris was known as Paname in French slang, but this vulgar appellation is gradually losing currency. ( "I'm from Paname"?..)
The revolutionaries became steadily more extreme, turning on the "enemy within." This included not just royalists but those accused of simply being not sufficiently revolutionary, including Danton and Camille Desmoulins. Over 1,300 people were executed in just six weeks in 1794. In the end, the extremists' bloodthirstiness destroyed their own moral standing; a group of moderates seized control in July 1794, sending Robespierre and his allies to the guillotine in a last spasm of bloodletting.