Rosas faced many threats to his power during the late 1830s and early 1840s. He fought a war against the Peru–Bolivian Confederation, endured a blockade by France, faced a revolt in his own province and battled a major rebellion that lasted for years and spread to several Argentine provinces. Rosas persevered and extended his influence in the provinces, exercising effective control over them through direct and indirect means. By 1848, he had extended his power beyond the borders of Buenos Aires and was ruler of all of Argentina. Rosas also attempted to annex the neighbouring nations of Uruguay and Paraguay. France and Great Britain jointly retaliated against Argentine expansionism, blockading Buenos Aires for most of the late 1840s, but were unable to halt Rosas, whose prestige was greatly enhanced by his string of successes.