Napoleon's military campaigns against the British, Austrians and Russians initially met with great success but hubris, overconfidence and poor planning caused the annihilation of his army in 1813 in the depths of a Russian winter. Russian and Austrian armies invaded France in 1814 and on 31 March 1814, Paris fell to the Russians - the first time in 400 years that the city had been conquered by a foreign power.
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.
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.
The grateful Directoire sent Napoleon to Italy to aid the defence against the various foreign armies threatening France. He was spectacularly successful and in 1798 was given command of an expedition to Egypt, which he nearly conquered. He returned with great prestige, which he used to ruthless effect in November 1799 to seize power. The following year, Napoleon was declared first consul.
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.
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."
Fierce fighting broke out a few days later as government troops retook the city district by district. It only ended on 29 March, by which time an estimated 4,000-5,000 people on both sides had been killed. In the aftermath, another 10,000 Communards were shot, 40,000 were arrested and 5,000 were deported.
The city was saved, however, by a desperate French effort to reinforce their lines and by a German failure to press home the attack. In the most famous incident of the "miracle on the Marne", as it became known, thousands of Parisian taxis were commandeered to carry soldiers to the front lines. The Germans were pushed back to the Oise some 75 miles away from the city.
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.
The city was neglected by the Empire and suffered grievously from Viking raiders who repeatedly sailed upriver to attack it. On March 28, 845 Paris was sacked by Viking raiders, probably under Ragnar Lodbrok, who collected a huge ransom in exchange for leaving. The weakness of the late Carolingian kings led to the gradual rise in power of the Counts of Paris.