The taxi driver obviously carried an unusual customer on Saturday night.
And alerted the police that the man he had just led to Versailles was wearing "a sheet" and "took himself for a king".
The person, a 31-year-old man, was arrested when he had entered the castle.
On their arrival on the spot, the police observed a broken French window glass before finding the intruder.
The Versailles prosecutor's office has for its part confirmed the intrusion of a man who climbed the perimeter wall before entering the castle, without giving further details.
Contacted by AFP, the spokesperson for the Palace of Versailles assured that no material damage to furniture or collections was to be deplored.
“This is a man who left Paris in the direction of Versailles and who allegedly told the taxi driver that he intended to enter the castle,” she said.
"He was intercepted after breaking a window near an entrance door which gives access to the lower gallery".
Newsletter - Most of the news
Every morning, the news seen by Le Parisien
I'm registering
Your email address is collected by Le Parisien to enable you to receive our news and commercial offers.
Learn more
In April, in full confinement, two teenagers had tried to enter through the pipes, without success.