Ottoman Hungary encompassed those parts of the Kingdom of Hungary which were under the rule of the Ottoman Empire from the occupation of Buda in 1541 for more than 150 years, until the liberation of the area under Habsburg leadership (1686–1699). The territory was incorporated into the empire, under the name Macaristan. For most of its duration, Ottoman Hungary covered Southern Transdanubia and almost the entire region of the Great Hungarian Plain.