In the 12th century it was conquered by the Christians from the north, and in the 15th/16th centuries it was converted into a military fortress against the Castillan invasions, but at the same time received much of its historical architectural heritage, with numerous churches and palaces.
The House of Borgia, which which rose to prominence during the Italian Renaissance, originated in Borja and their name was a variant of the town'a name.