The Castle of Xavier (Basque: Xabierko gaztelua; Spanish: Castillo de Javier) is located on a hill in the town of Javier (Navarre, Spain), 52 km east of Pamplona and 7 km east of Sangüesa. Built in the 10th century, this castle was the birthplace and childhood home of Saint Francis Xavier, son of the Lords of Xavier, hence his surname. The town of Javier belonged to the Kingdom of Navarre which was always its own kingdom, never belonging to France.
The name Xavier derives from Basque Etxeberri or 'new house', evolving thereafter into "Javier" in Navarro-Aragonese and Spanish.
Consists of three buildings with different antiquity. The "Tower of the Kristo Santua" is the main fortified building and chapel, holding an interesting Late Gothic crucifix and a series of murals depicting the dance of the death, unique in Spain. The "Tower of Homage", call also the San Miguel Tower, is the oldest in the castle. It also harbors the museum dedicated to the life of the saint. In its foundations Muslim vestiges have been unveiled, possibly dating from the 10th century. In the 11th century, the first enclosure that sheltered the early surround rooms. In the 13th century, two polygonal bodies and two flanking towers were added in all four cardinal directions.
The castle and village of Xavier were won by Sancho VII of Navarre in approximately 1223. An Aragonese noble got a loan of 9,000 sols from the King of Navarre, with the latter receiving Xavier as a warranty. The Aragonese noble could not afford to pay in due time, so the stronghold became property of Sancho. It was not the first time nor the last, since Sancho VII was one of the major lenders to the Crown of Aragon, and took over a number of villages and castles in return for his unpaid loans that notably strengthed of his border with Aragon: Escó, Peña, Petilla, Gallur, Trasmoz, Sádaba, etc.