In the performance of these duties he patented all the skill and energy he was endowed with, actively taking care of reorganizing the provincial troops, especially the cavalry, until, when the revolution against the French was broken in Viseu, he was the Brigadier in charge of the interim government.