When James I the Conqueror, king of Aragon and count of Barcelona, founded the Kingdom of Majorca in 1276, Perpignan became the capital of the mainland territories of the new state. The succeeding decades are considered the golden age in the history of the city. It prospered as a centre of cloth manufacture, leather work, goldsmiths' work, and other luxury crafts. King Philippe III of France died there in 1285, as he was returning from his unsuccessful crusade against the Aragonese Crown.