In the 7th century, the Franks and the Aquitani competed for control of the Auvergne. Conquered by the Carolingians, it was integrated for a certain time into the kingdom of Aquitania. A section known as the county of Aurillac was given to the father of Géraud d’Aurillac; this grant was made directly by the king. The counts of Auvergne, the Guilhemides, slowly obtained their independence. In the 10th century, Auvergne was subject to rivalry between the counts of Poitiers and Toulouse.