The Château d'If is a fortress (later a prison) located on the island of If, the smallest island in the Frioul archipelago situated in the Mediterranean Sea about a mile offshore in the Bay of Marseille in southeastern France. It is famous for being one of the settings of Alexandre Dumas' adventure novel The Count of Monte Cristo.
Île d’If measures 3 hectares (0.03 km2) and is located 3.5 kilometers west of the Old Port of Marseille. The entire island is heavily fortified; high ramparts with gun platforms surmount the cliffs that rise steeply from the surrounding ocean. Apart from the fortress, the island is uninhabited.
The "château" is a square, three-story building 28 m (92 ft) long on each side, flanked by three towers with large gun embrasures. It was built in 1524-31 on the orders of King Francis I, who, during a visit in 1516, saw the island as a strategically important location for defending the coastline from sea-based attacks. However, its construction was extremely controversial. When Marseille was annexed to France in 1481, it retained the right to provide for its own defence. The castle was, therefore, seen by many of the local inhabitants as an unwanted imposition of central authority.
The castle's principal military value was as a deterrent; it never had to fight off an actual attack. The closest that it came to a genuine test of strength was in July 1531, when Holy Roman Emperor Charles V made preparations to attack Marseille. However, he abandoned the invasion plan.
This might have been fortunate, given the weaknesses identified by military engineer Vauban in a scathing report in 1701: "The fortifications look like the rock, they are fully rendered, but very roughly and carelessly, with many imperfections. The whole having been very badly built and with little care... All the buildings, very crudely done, are ill made."
The embalmed body of general Jean Baptiste Kléber was repatriated to France after his assassination in Cairo in 1800. Napoleon, fearing that his tomb would become a symbol to Republicanism, ordered that the body stay at the château. It remained there for 18 years until Louis XVIII granted Kléber a proper burial in his native Strasbourg.
The isolated location and dangerous offshore currents of the Château d'If made it an ideal escape-proof prison, very much like the island of Alcatraz in California in more recent times. Its use as a dumping ground for political and religious detainees soon made it one of the most feared and notorious jails in France. Over 3,500 Huguenots (French Protestants) were sent to Château d'If, as was Gaston Crémieux, a leader of the Paris Commune, who was shot there in 1871.
The island became internationally famous in the 19th century when Alexandre Dumas used it as a setting for The Count of Monte Cristo, published to widespread acclaim in 1844. In the novel, the main character Edmond Dantès (a commoner who later purchases the noble title of Count) and his mentor, Abbé Faria, were both imprisoned in it. After fourteen years, Dantès makes a daring escape from the castle, becoming the first person ever to do so and survive. In reality, no one is known to have done this. The modern Château d'If maintains a roughly hewn dungeon in honour of Dantès as a tourist attraction.
As was common practice in those days, prisoners were treated differently according to their class and wealth. The poorest were placed at the bottom, being confined perhaps twenty or more to a cell in windowless dungeons under the castle. However, the wealthiest inmates were able to pay for their own private cells (or pistoles) higher up, with windows, a garderobe and a fireplace.