The town of Zürich was part of the Thurgau until it became "reichsunmittelbar" in 1218. When the Kyburg dynasty became extinct in 1264 the Habsburgs took over that land. The Swiss confederation allied with ten freed bailiwicks of the former Toggenburg seized the lands of the Thurgau from the Habsburgs in 1460, and it became subject territory of Zürich.