The city remained in Ottoman hands until Thessaly became part of the independent Kingdom of Greece in 1881, except for a period where Ottoman forces re-occupied it during the Greco-Turkish War of 1897. In the late 19th century, there was still a small village in the outskirts of the town inhabited by Africans from Sudan, a curious remnant of the forces collected by Ali Pasha.