During this period the Constitution of 1876 was approved, a constitution sufficiently flexible so that all the ideologies coexisted under it and could make the necessary changes in favor of one or another ideology without altering the system. This constitution gave sovereignty to both the Monarch and the Cortes, returning to the principle that the Government should have the confidence of both the Crown and Parliament. Thanks to this flexibility, a two-party system is installed in Spain, which derives from the so-called between Cánovas and Sagasta agreed at El Pardo Palace, through which the liberal and conservative parties took turns in power. For politicians of the time, the need for stability allowed not necessarily attend the will of the electoral body, but ensure the proper functioning of constitutional bodies.