After the French were expelled, General Bacelar returned to his command of Beira, and having been promoted to lieutenant general, in Viseu he remained until, in June 1810, being given the superior command of the corps of the Militias of the three northern provinces and Porto party, went to establish their headquarters in Lamego.