In 1821, parts of Thessaly and Magnesia participated in the initial uprisings in the Greek War of Independence, but these revolts were swiftly crushed. Thessaly became part of the modern Greek state in 1881, after the Convention of Constantinople except the area around the town of Elassona, which remained in Ottoman hands until 1912. It was briefly captured by Ottomans during the Greco-Turkish War of 1897. After the Treaty of Constantinople (1897), Greece was forced to cede minor border areas and to pay heavy reparations. The remaining part of Thessaly held by the Ottomans was finally regained by the Greeks during the First Balkan War in 1912.