Substantial changes occurred during the second quarter of the 19th century. By 1809, Spain no longer governed California because the Spanish king was imprisoned by the French. For the next decade and a half, the colony came to rely upon trade with Anglo-Americans and Spanish-Americans from Lima and San Blas for economic survival and political news. The victory in the Mexican War of Independence from Spain in 1821 marked the beginning of Mexican rule in California, in theory, though in practice the First Mexican Empire did during its reign. The Indian congregations at missions and the missionaries provided the critical source of products that underlay export revenues for the entire colony between 1810 and 1825. Converting new Indians faded, while ranching and trade increased.