Edward II's close relationship to Gaveston had been a source of conflict at court, and Gaveston's execution by a group of rebellious barons in 1312 had brought the country to the brink of civil war. As Edmund came of age, he became an important member of the circle around his brother. In 1318, the Treaty of Leake was drafted as an effort to reconcile the opposing parties, and Edmund – as his first public act – was among the witnesses to sign this treaty. Further official appointments followed. In the spring of 1320 he took part in an embassy to Pope John XXII in Avignon, where the mission was to absolve the king of his oath to uphold the Ordinances, a set of restrictions imposed on royal authority by the baronage. Later that year, he joined his brother the king in Amiens, where Edward was paying homage to the French king. In October 1320, Edmund attended his first parliament.