Also during the 16th century, the North-African piracy targeted the whole coastline of the kingdom of Valencia, forcing the fortification of sites. By the late 1520s, the intensification of the activity of the Barbary corsairs along the conflictive domestic situation and the emergence of the Atlantic Ocean in detriment of the Mediterranean in the global trade networks put an end to the economic splendor of the city. The piracy also paved the way for the ensuing development of Christian piracy, that had Valencia as one of its main bases in the Iberian Mediterranean. The Berber threat—initially with Ottoman support—generated great insecurity on the coast, and it would not be substantially reduced until the 1580s.