 In the end of the 18th century, the auxiliary troops were renamed "Militias".In the Peninsular War, the Militia regiments and the Ordenanças units had an important role in the defense of the country against the Napoleonic invader army.Still in the 19th century, the Militia units also had an important role in the Liberal Wars, with the majority of those troops fighting on the side of King Miguel.