By the end of the ninth century Toulouse was the capital of the county of Toulouse, and was ruled by the independent dynasty founded by Frédelon. The counts of Toulouse were challenged by those of Auvergne, who ruled the northeastern part of former Aquitaine and claimed Toulouse. The counts of Toulouse survived; although the county was a small part of the former Aquitaine, at the death of Count William the Pious of Auvergne in 918 it acquired Gothia. This doubled its territory, reuniting Toulouse with the Mediterranean coast from Narbonne to Nîmes. The county of Toulouse took shape from the city in the west to the Rhône in the east, an entity which would survive until the French Revolution as the province of Languedoc. Toulouse would never again be part of Aquitaine, whose capital would become Poitiers and then Bordeaux. William the Pious was the first to recreate the title of Duke of Aquitaine for himself during the 890s, and the count of Poitiers inherited the title in 927. In 932 King Rudolph of France, fighting the count of Poitiers, conferred the title of Duke of Aquitaine to new ally Count Raymond Pons of Toulouse.