 In March 1812, the Cádiz Cortes created the first modern Spanish constitution, the Constitution of 1812 (informally named "La Pepa").This constitution provided for a separation of the powers of the executive and the legislative branches of government.The Cortes was to be elected by universal suffrage, albeit by an indirect method.