It was by this that several cities in Europe pledged their support to one and other in fighting off the king (Y), who was trying to assert himself in that region. They formed an organization called X.
They succeeded and agreed on a 6 year truce.
The organization was dissolved in the 13th century.
Identify the organization X
Identify the king Y
X
Y