In 1349, as a young prince, Charles received from his grandfather King Philip VI the province of Dauphiné to rule. This allowed him to use the title "Dauphin" until his coronation, which saw the integration of the Dauphiné into the crown lands of France. From then on, all heirs apparent of France used the title of Dauphin until their coronation.
Charles became regent of France when his father John II was captured by the English at the Battle of Poitiers in 1356. To pay the ransom, Charles had to raise taxes and deal with the hostility of the nobility, led by Charles the Bad, King of Navarre; the opposition of the French bourgeoisie, which was channeled through the Estates-General led by Etienne Marcel; and with peasant revolts known asJacqueries. Charles overcame all of these rebellions, but in order to liberate his father, he had to conclude the Treaty of Brétigny in 1360, in which he abandoned large portions of south-western France to Edward III of England and agreed to pay a huge ransom.
Charles became king in 1364. With the help of talented advisers known as the Marmousets, his skillful management of the kingdom allowed him to replenish the royal treasure and to restore the prestige of the House of Valois. He established the first permanent army paid with regular wages, which liberated the French populace from the companies of routiers who regularly plundered the country when not employed. Led by Bertrand du Guesclin, the French Army was able to turn the tide of the Hundred Years' War to Charles' advantage, and by the end of Charles' reign, they had reconquered almost all the territories ceded to the English in 1360. Furthermore, the French Navy, led by Jean de Vienne, managed to attack the English coast for the first time since the beginning of the Hundred Years' War.
In