The modern religious history of Spain and Portugal begins with the religious unity between the state and society forged around Catholicism, and ends with the present era epitomized by ongoing secularization and incipient religious pluralism. With some difficulty, the Catholic Church adapted to the trials posed by nineteenth-century liberalism, reaching an accommodation with the constitutional monarchies in both Iberian countries. The first serious challenge came with the arrival of the republics in Portugal in 1910 and in Spain in 1931. The republics did not last long, however; two Catholic dictatorships governed the fate of the Peninsula until the 1970s, though separation of church and state was formally maintained in Portugal. The dictatorships ended in 1974 and 1975, respectively, giving way to the establishment of new democracies, accompanied on the one hand by secularization in both the state and society, and on the other by growing religious pluralism.