Eastern Rumelia was granted some autonomy in 1878, but then rebelled and joined Bulgaria in 1885. Thessaly was ceded to Greece in 1881, but after Greece attacked the Ottoman Empire to help the Second Cretan Uprising in 1897, Greece was defeated in Thessaly. Crete would gain autonomy in 1898 after the Cretan Revolt (1897–1898).