For a considerable time, the Kingdom of Aragon, and its little county and port of Barcelona retained its own laws and languages (i.e.: Aragones and also Catalan). Catalonia was just a county of the Crown of Aragon but this came to an end when the new Bourbon dynasty secured the throne of Spain in the War of Spanish Succession (1702–1714) and made the former Crown of Aragon territories into provinces of the Crown of Castile following the war. During the war, Catalonia had supported the claim of a member of the Austrian branch of the Habsburg dynasty (after breaking an oath of loyalty to the French Bourbon prince Philip of Anjou (Philip V of Spain) from 1702).