Luís do Rego was appointed
governador das armas of Minho by the constitutional government, he was in charge of crushing the revolt of the 2nd Count of Amarante, future Marquis of Chaves, who defeated Amarante in February 1823. With the
Vilafrancada reimposing the absolutist regime in Portugal, he was removed from office and deported to
Figueira da Foz, and retired in the following year. He reentered the army during the regency of
Maria II of Portugal, he was promoted to
lieutenant general in 1827. Arrested during the reign of
King Miguel, he managed to escape to Spain, returning after the
Concession of Evoramonte. Appointed member of the Supreme Council of Military Justice in 1834, he was reappointed governor of weapons of Minho during the
setembrismo, who appointed him senator for
Viana do Castelo, during the short duration of the 1838 Constitution. The
setembrista government of
Maria II awarded him the title of Viscount of Geraz do Lima on 27 April 1835. ==Promotions and Units==