Pope Pius VI (1789) and Queen Mary I reformed the order into a secular institution. In 1834, when the civil government of Portugal abolished religious orders and monasteries, after the defeat of King Miguel in the Civil War, under the constitutional monarchy the order lost its properties. The ancient military orders were transformed by the liberal constitution and subsequent legislation into mere orders of merit. The privileges which once had been an essential part of the membership of the old military orders also ceased.