The county of Anjou was united to the royal domain between 1205 and 1246, when it was turned into an apanage for the king's brother, Charles I of Anjou. This second Angevin dynasty, a branch of the Capetian dynasty, established itself on the throne of Naples and Hungary. Anjou itself was united to the royal domain again in 1328, but was detached in 1360 as the Duchy of Anjou for the king's son, Louis I of Anjou. The third Angevin dynasty, a branch of the House of Valois, also ruled for a time the Kingdom of Naples. The dukes had the same autonomy as the earlier counts, but the duchy was increasingly administered in the same fashion as the royal domain and the royal government often exercised the ducal power while the dukes were away. When the Valois line failed and Anjou was incorporated into the royal domain again in 1480, there was little change on the ground. Anjou remained a province of crown until the French Revolution (1790), when the provinces were reorganized.