The kings, on their side, did not fail to take an active part in the election of the grand master, who could bring such valuable support to the royal authority. In 1409, the regent of Castile succeeded in having his son, Sancho, a boy of eight years, made Grand Master of Alcántara. These intrigues went on until 1492, when Pope Alexander VI invested the Catholic King, Ferdinand of Aragon, with the grand mastership of Alcántara for life. Adrian VI went farther, in favour of his pupil, Charles V, for in 1522 he bestowed the three masterships of Spain upon the Crown, even permitting their inheritance through the female line. The Knights of Alcántara were released from the vow of celibacy by the Holy See in 1540, and the ties of common life were sundered. The order was reduced to a system of endowments at the disposal of the king, of which he availed to himself to reward his nobles. There were no less than thirty-seven "Commanderies", with fifty-three castles or villages. Under the French domination the revenues of Alcántara were confiscated, in 1808, and they were only partly given back in 1814, after the restoration of Ferdinand VII.