With the administrative reform of 1853, Macedo de Cavaleiros became one of the municipalities of Portugal. This elevation to the status of municipality was met with opposition, both in rural areas, where the struggles between those in favour of the old and the new municipality lasted until 1911, and in parliamentary circles, triggered mainly by the deputy for the Moncorvo constituency, João Pedro de Almeida Pessanha. Even so, the municipality was confirmed by royal decree on 24 October 1855.
On 15 January 1863, Macedo de Cavaleiros was elevated to the status of town.
In 1903, the railway was built, establishing the Tua line, which naturally gave a strong economic boost to the region.
Finally, on 13 May 1999, Macedo de Cavaleiros was elevated to the status of city.