The Petit Trianon was built on the site of a botanical garden developed about a decade earlier by Louis XV, within the grounds of the Grand Trianon, Louis XIV's retreat from the Palace of Versailles to the southeast.[1] It was designed by Ange-Jacques Gabriel by the order of Louis XV for his long-term mistress, Madame de Pompadour, and was constructed between 1762 and 1768.[2] Madame de Pompadour died four years before its completion, and the Petit Trianon was subsequently occupied by her successor, Madame du Barry. Upon his accession to the throne in 1774, the 20-year-old Louis XVI gave the château and its surrounding park to his 19-year-old Queen Marie Antoinette for her exclusive use and enjoyment.[2][3][4]

The château of the Petit Trianon is a celebrated example of the transition from the Rococo style of the earlier part of the 18th century, to the more sober and refined, Neoclassical style of the 1760s and onward. Essentially an exercise on a cube, the Petit Trianon attracts interest by virtue of its four facades, each thoughtfully designed according to that part of the estate it would face. The Corinthian order predominates, with two detached and two semi-detached pillars on the side of the formal French garden, and pilasters facing both the courtyard and the area once occupied by Louis XV's greenhouses. Overlooking the former botanical garden of the king, the remaining facade was left bare. The subtle use of steps compensates for the differences in level of the château's inclined location.

Marie Antoinette would come to the Petit Trianon not only to escape the formality of court life, but also to shake off the burden of her royal responsibilities. At Versailles, she was under considerable pressure and judgement from both her family and the court, and the Petit Trianon was her place of ease and leisure where she could rest from those trials. Since all was "de par la Reine" (by order of the Queen), none were permitted to enter the property without the Queen's express permission (not even, it was said, Louis XVI). Such exclusivity alienated the court nobility, which she did very willingly, since only the queen's "inner circle" (including the Princess de Lamballe, and Gabrielle de Polastron, duchesse de Polignac) were invited.

A house of intimacy and of pleasure, the building was designed to require as little interaction between guests and servants as possible. To that end, the table in the salles à manger was conceived to be mobile, mechanically lowered and raised through the floorboards so that the servants below could set places sight unseen. The tables were never built, but the delineation for the mechanical apparatus can still be seen from the foundation.

Within the queen's apartment, Marie Antoinette's need for privacy is apparent: the decor of her boudoir displays an inventiveness unique to the age, featuring mirrored panels that, by the simple turning of a crank, can be raised or lowered to obscure the windows. Her bedroom, although simple, is also elegant in accord with her general style, provided with furniture from Georges Jacob and Jean Henri Riesener. The wallpaper was painted by Jean-Baptiste Pillement.

On 5 October 1789, Marie Antoinette was in the gardens of the Petit Trianon when a page brought news of the imminent arrival of an armed crowd from Paris. With the enforced departure of the royal family the next day the Petit Trianon was almost abandoned except for the gardeners and other staff who continued to live there. Renovations that had been underway were interrupted, leaving large sums owed to builders. The former Queen's gardener Antoine Richard was appointed as curator of the gardens and plant nursery in 1792 by the Minister of the Interior. After the final overthrow of the monarchy in July 1792, all of the furniture, art works and other valuables of the Petit Trianon were given to auction, under a decree of the Convention dated 10 June 1793. The auction began on Sunday, August 25, 1793 and continued until 11 August 1794. The properties sold were widely scattered. Silverware, lead and brass fixtures were requisitioned for use in the arsenals. The sculptor Amable Boichard was appointed in April 1794 to remove "emblems of royalty and feudalism" from the property.

Under the new Republic, the Petit Trianon underwent a number of changes. Declared national property, the land was divided into ten lots. The City of Versailles proposed that a botanical garden be established, but this plan was not adopted. In 1796, the land was leased to a tavern. By 1801, the use of the grounds for dances and festivals had led to neglect and vandalism. The buildings of the hamlet were reported to be dilapidated. Some improvements in the layout of the gardens were subsequently made and a school located in part of the complex.