Municipalities were first created by decree on 23 May 1812 as part of the liberal reforms associated with the new Spanish Constitution of 1812 and based on similar actions in revolutionary France.
Local governments emerged for the first time on 23 May 1812, as a result of the liberal changes included in the new Spanish Constitution of 1812, which was inspired by similar developments in the French Revolution.