By the Hamburg Agreement on 8 March 1701, Mecklenburg was separated into two duchies with limited autonomy, which formed a collective state–as of 1815, the Grand Duchies of Mecklenburg-Schwerin and Mecklenburg-Strelitz. Since 1755, they had the same constitution and were under the control of the same parliament. In 1815, both parts became Grand Duchies by the Congress of Vienna.