Xàtiva, also known as Játiva, is a town and municipality located in the province of Valencia in eastern Spain. Situated on the western bank of the river Albaida, it serves as the capital of the Costera comarca and lies approximately 25 kilometers inland from the Mediterranean Sea. The city sits at a strategic junction where the Valencia–Murcia and Valencia Albacete railways meet.
The municipality is notable for holding the highest number of enclaves in Spain, totaling twenty-six. Historically, the city was a center of learning during the Al-Andalus Islamic era, when Arab settlers introduced paper manufacturing technology to the region. During this period, Xàtiva became known for its schools and educational circles; it was also the residence of the scholar Abu Ishaq al-Shatibi.
Following the Reconquista by Northern Christian kingdoms and subsequent repopulation, the city became associated with the House of Borgia. This influential family during the Renaissance produced several prominent figures, including Popes Callixtus III and Alexander VI.