 In 1591, in the events known as the "Alterations of Aragon", the persecuted secretary of King Philip II, Antonio Pérez took refuge at the Privilege of Manifestation contemplated by the Fuero of Aragon in order to elude the imperial troops.However, the Tribunal of the Inquisition had jurisdiction over all the fueros of the kingdoms, and, for that reason, he was held in a cell of the inquisitorial headquarters of the Aljafería, which provoked an uprising of the people before what they considered a violation of the foral law, and they went to the assault of the Aljafería to rescue him.After the forceful action of the royal army, the revolt was put down, and Philip II decided to consolidate the Aljafería as a fortified citadel under his authority to prevent similar revolts.