Spanish immigration did not resume until the 1840s at the beginning of the Guano era, one of Peru's most prosperous time periods. During this era, immigration from Spain greatly increased and the economy was booming and standard of living was high. This era ended in 1866 with the Spanish-Peruvian War in which Peru emerged victorious. After the war, immigration decreased although the influx of immigrants remained steady until the 1930s. During the Spanish Civil War, thousands of Spaniards fled from Spain to Peru. Over the course of General Francisco Franco's dictatorship many thousands more fled in fear of the regime. The Spanish republicans fled Franco's regime as well, seeking to escape retribution from the new government. World War II brought the end of Spanish immigration to Peru. Many Spanish Peruvians left the nation in 1960s and 1970s to flee from excessive poverty and dictatorship of Gen. Juan Velasco Alvarado and most of these moved to United States and Spain, while most of the rest to Canada, Australia, New Zealand, and United Kingdom. The second wave of Spanish and other white Peruvians left during the Alan Garcia regime (a Hispanic descendant) that led Peru to extreme poverty and hyperinflation. Nevertheless, immigration from Spain began again in considerable numbers throughout the 20th century due to many Spanish tourists settling in Peru.