In the late 9th century under Count Wilfred, Barcelona became the "de facto" capital of the region. It controlled the other counties' policies in a union, which led in 948 to the independence of Barcelona under Count Borrel II, who declared that the new dynasty in France (the Capets) were not the legitimate rulers of France nor, as a result, of his county. These states were small and, with the exception of Navarre, did not have the capacity for attacking the Muslims in the way that Asturias did, but their mountainous geography rendered them relatively safe from being conquered, and their borders remained stable for two centuries.