Versailles ( French pronunciation: [vɛʁsɑj] ) is a city in the Yvelines département in Île-de-France region, renowned worldwide for its château, the Château de Versailles and the gardens of Versailles, designated UNESCO World Heritage Sites. According to the 2008 census, the population of the city is 88,641  inhabitants, down from a peak of 94,145 in 1975.
A new town, founded by the will of King Louis XIV, it was the de facto capital of the Kingdom of France for over a century, from 1682 to 1789, before becoming the cradle of the French Revolution. After having lost its status of royal city, it became the préfecture (regional capital) of Seine-et-Oise département in 1790, then of Yvelines in 1968, and a Roman Catholic diocese. Versailles is historically known for numerous treaties such as the Treaty of Paris (1783), which ended the American Revolutionary War and the Treaty of Versailles, after World War I.
Located in the western suburbs of the French capital, 17.1 km (10.6 mi) from the centre of Paris, Versailles is in the 21st century a wealthy suburb of Paris with a service-based economy and a major touristic destination as well. In addition, the Congress of France – the name given to the body created when both houses of the French Parliament, the National Assembly and the Senate, meet – gathers in the Château de Versailles to vote on revisions to the Constitution.
The argument over the etymology of Versailles tends to privilege the Latin word versare, meaning "to keep turning, turn over and over",  an expression used in medieval times for plowed lands, cleared lands (lands that had been repeatedly "turned over"). This word formation is similar to Latin seminare ("to sow") which gave French semailles ("sowings", "sown seeds").
During the Revolution of 1789, city officials had proposed to the Convention to rename Versailles Berceau-de-la-Liberté ("Cradle of Liberty"), but they had to retract their proposal when confronted with the objections of the majority of the population. 
A seat of power
From May 1682, when Louis XIV moved the court and government permanently to Versailles, until his death in September 1715, Versailles was the unofficial capital of the kingdom of France. For the next seven years, during the Régence of Philippe d'Orléans, the royal court of the young King Louis XV was the first in Paris, while the Regent governed from his Parisian residence, the Palais-Royal. Versailles was again the unofficial capital of France from June 1722, when Louis XV returned to Versailles, until October 1789, when a Parisian mob forced Louis XVI and the royal family to move to Paris. Versailles again became the unofficial capital of France from March 1871, when Adolphe Thiers' government took refuge in Versailles, fleeing the insurrection of the Paris Commune, until November 1879, when the newly elected government and parliament returned to Paris. During the various periods when government affairs were conducted from Versailles, Paris remained the official capital of France.
Versailles was made the préfecture of the Seine-et-Oise département at its inception in March 1790 (at which time Seine-et-Oise had approximately 420,000 inhabitants).  By the 1960s, with the growth of the Paris suburbs, the Seine-et-Oise had reached more than 2 million inhabitants,  and was deemed too large and ungovernable, and thus it was split into three départements in January 1968. Versailles was made the préfecture of the Yvelines département, the largest chunk of the former Seine-et-Oise. At the 2006 census the Yvelines had 1,395,804 inhabitants. 
In 1975, Versailles was made the seat of a Court of Appeal whose jurisdiction covers the western suburbs of Paris.
Since 1972, Versailles has been the seat of one of France's 30 nationwide académies (districts) of the Ministry of National Education.
Versailles is also an important node for the French army, a tradition going back to the monarchy with, for instance, the military camp of Satory and other institutions.
The palace of Versailles (Louis XIV lived there) is in the out-skirts of the city.
The city (commune) of Versailles has an area of 26.18 km 2 (10.11 sq mi, or 6,469 acres), which is a quarter of the area of the city of Paris. In 1989, Versailles had a population density of 3,344/km 2 (8,660/sq mi), whereas Paris had a density of 20,696/km 2 (53,602/sq mi).
Born out of the will of a king, the city has a rational and symmetrical grid of streets.
The name of Versailles appears for the first time in a medieval document dated 1038.
In 1561, Martial de Loménie, secretary of state for finances under King Charles IX, became lord of Versailles. He obtained permission to establish four annual fairs and a weekly market on Thursdays. The population of Versailles was 500 inhabitants. Martial de Loménie was murdered during the St. Bartholomew's Day massacre (24 August 1572). In 1575, Albert de Gondi, a man from Florence who had come to France with Catherine de' Medici, bought the seigneury of Versailles.
Henceforth Versailles was the possession of the Gondi family, a family of wealthy and influential parliamentarians at the Parlement of Paris. Several times during the 1610s, the Gondi invited King Louis XIII to hunt in the large forests around Versailles. In 1622, the king purchased a parcel of forest for his private hunting. In 1624, he acquired more and entrusted Philibert Le Roy with the construction of a small hunting lodge of red bricks and stone with a slate roof. In 1632, the king bought the totality of the land and seigneury of Versailles from Jean-François de Gondi. The hunting lodge was enlarged to the size of a small château between 1632 and 1634.
At the death of Louis XIII, in 1643, the village had 1,000 inhabitants.
This small château was the site of one of the historical events that took place during the reign of Louis XIII, on 10 November 1630, when, on the Day of the Dupes, the party of the queen mother was defeated and Richelieu was confirmed as Prime minister.
King Louis XIV, son of Louis XIII, was only five years old when his father died. It was 20 years later, in 1661, when Louis XIV commenced his personal reign, that the young king showed interest in Versailles. The idea of leaving Paris, where, as a child, he had experienced first-hand the insurrection of the Fronde, had never left him. Louis XIV commissioned his architect Le Vau and his landscape architect Le Nôtre to transform the castle of his father, as well as the park, in order to accommodate the court. In 1678, after the Treaty of Nijmegen, the king decided that the court and the government would be established permanently in Versailles, which happened on 6 May 1682.
At the same time, a new city was emerging from the ground, resulting from an ingenious decree of the king dated 22 May 1671, whereby the king authorized anyone to acquire a lot in the new city for free.
The old village and the Saint Julien church were demolished to make room for buildings housing the administrative services managing the daily life in the castle.
When the court of King Louis XV returned to Versailles in 1722, the city had 24,000 inhabitants. With the reign of Louis XV, Versailles grew even further. Versailles was the capital of the most powerful kingdom in Europe, and the whole of Europe admired its new architecture and design trends. Soon enough, the strict building rules decided under Louis XIV were not respected anymore, real estate speculation flourished, and the lots that had been given for free under Louis XIV were now on the market for hefty prices. By 1744, the population reached 37,000 inhabitants. The cityscape changed considerably under kings Louis XV and Louis XVI. Buildings were now taller. King Louis XV built a Ministry of War, a Ministry of Foreign Affairs (where the Treaty of Paris (1783) ending the American Revolutionary War was signed in 1783 with the United Kingdom), and a Ministry of the Navy. By 1789, the population had reached 60,000 inhabitants,  and Versailles was now the seventh or eighth-largest city of France, and one of the largest cities of Europe.
Seat of the political power, Versailles naturally became the cradle of the French Revolution. The Estates-General met in Versailles on 5 May 1789. The members of the Third Estate took the Tennis Court Oath on 20 June 1789, and the National Constituent Assembly abolished feudalism on 4 August 1789. Eventually, on 5 and 6 October 1789, a crowd of women joined by some members of the national guard from Paris invaded the castle to protest bread prices and forced the royal family to move to Paris. The National Constituent Assembly followed the king to Paris soon afterwards, and Versailles lost its role of capital city.
From then on, Versailles lost a good deal of its inhabitants.
The Franco-Prussian War of 1870 put Versailles in the limelight again. On 18 January 1871, the victorious Germans proclaimed the king of Prussia, Wilhelm I, emperor of Germany in the very Hall of Mirrors of the castle, in an attempt to take revenge for the conquests of Louis XIV two centuries earlier. Then in March of the same year, following the insurrection of the Paris Commune the French government under Thiers relocated to Versailles, from where the insurrection was militarily quelled. The government and the French parliament stayed in Versailles after the quelling of the insurrection, and it was even thought for some time that the capital of France would be moved definitely to Versailles in order to avoid the revolutionary mood of Paris in the future.
Restoration of the monarchy was almost realized in 1873 with parliament offering the crown to Henri, comte de Chambord, but his refusal to accept the tricolor flag that had been adopted during the Revolution made the restoration of monarchy impossible for the time being. Versailles was again the political center of France, full of buzz and rumors, with its population briefly peaking at 61,686 in 1872,  matching the record level of population reached on the eve of the French Revolution 83 years earlier. Eventually, however, left-wing republicans won a string of parliamentary elections, defeating the parties supporting a restoration of the monarchy, and the new majority decided to relocate the government to Paris in November 1879. Versailles then experienced a new population setback (48,324 inhabitants at the 1881 census).  After that, Versailles was never again the seat of the capital of France, but the presence of the French Parliament there in the 1870s left a vast hall built in one aisle of the palace which is still used by the French Parliament when it meets in Congress to amend the French Constitution, as well as when the French president addresses the two chambers of the French Parliament.
It was not until 1911 that Versailles definitely recovered its level of population of 1789, with 60,458 inhabitants at the 1911 census.
The center of the town has kept its very bourgeois atmosphere, while more middle-class neighborhoods have developed around the train stations and in the outskirts of the city.
Versailles' primary cultural attraction is the Palace, with its ornately decorated rooms and historic significance.
The headquarters of the Versailles Saint-Quentin-en-Yvelines University are located in the city, as well as the ISIPCA, a post graduate school in perfume, cosmetics products and food flavor formulation.
Versailles is served by Versailles – Chantiers station, which is an interchange station on Paris RER line C, on the Transilien La Défense suburban rail line, on the Transilien Paris – Montparnasse suburban rail line, and on several national rail lines, including low-frequency TGV service.
Versailles is also served by two other stations on Paris RER line C: Versailles-Château–Rive-Gauche (the closest station to the Palace of Versailles and consequently the station most frequently used by tourists) and Porchefontaine.
Versailles is twinned with:
- Taipei, Taiwan
- [[INLINE_IMAGE|https://upload.wikimedia.org/wikipedia/commons/9/95/Versailles_Cour_Royale_Sud.jpg|//upload.wikimedia.org/wikipedia/commons/thumb/9/95/Versailles_Cour_Royale_Sud.jpg/450px-Versailles_Cour_Royale_Sud.jpg 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/9/95/Versailles_Cour_Royale_Sud.jpg/600px-Versailles_Cour_Royale_Sud.jpg 2x|Image|h204|w300|tooltippableImage]] The Château de Versailles (Pavillon Dufour) in the spring of 2006. Pushkin, Russia
- Nara, Japan
- Gießen, Hesse, Germany
- Gyeongju, Korea
- Marine Jahan, dancer
- Philip V of Spain (1683–1746), King of Spain
- Stéphane Audran (born 1932), French actress
- Hélène Boucher (1908-1934), early French pilot
- Yves Brayer (1907-1990), French painter
- Jean-Benoît Dunckel (born 1965), musician
- Hubert Dupont (born 1959), jazz musician
- Stéphane Franke (1964-2011), German athletes and Olympic athletes
- Michel Gondry (born 1963), French film and music video director
- Jean-François Lyotard (1924-1998), French philosopher and literary theorist of Postmoderne
- Albert Malbois (born 1915), French Roman Catholic bishop
- Joëlle Mélin (born 1950), French politician
- Bruno Podalydès (born 1961), French writer, director and actor