In the 16th century the Ottoman Empire had conquered the southern "line of fortresses" of the Kingdom of Hungary. After the Battle of Mohács where the Kingdom of Hungary was heavily defeated, and the turmoil caused by the defeat, the influence was spread on the middle part of the Kingdom of Hungary. While Ottoman troops invaded Buda in 1526 and 1529, Suleyman I used the Buda area as a territory of the allied kingdom and did not annex it fully to the Empire. In 1541, Suleyman decided to consolidate the conquered Buda area and to set it up as an organic part of the Empire. He drove away the Austrian commander Roggendorf, besieging the city, and on 29 August 1541 he took control of the city with a trick; together with the city on the other side of Danube, Pest. He immediately organised the first Central Europeaneyalet with capital in Buda. The same year, several other cities fell under Ottoman rule: Szeged, Kalocsa, Szabadka. In the years 1543–44, the Ottomans conquered the fortresses of Nógrád, Vác, Fehérvár, Pécs and Siklós which were embedded into the new vilajet. In 1552 the vilajet was expanded with new territories in the North, and the new Eyalet of Temeşvar was established. Military control of the surrounding areas was driven from Budin. The following year, the advance of the Ottomans slowed down and the territory of the Budin vilajet did not change until the ending of the Fifteen Years War and the Peace of Zsitvatorok, where the Ottomans lost territories North of Nógrád. However Eğri and Kanije were captured during these wars and were shortly managed as sanjaks in this province. The territory of the eyalet was significantly reduced in size with the establishment of the eyalets of Eğri and Kanije. Nevertheless, it remained the foremost Ottoman province in Central Europe, owing to the strategic importance of Budin as a major port on the Danube. In the 17th centuryKara Mustafa conquered more vast areas from the Habsburg Kingdom of Hungary and its vassal Principality of Transylvania, but did not succeed in conquering Vienna in 1683. This failed attempt heralded the gradual decline of Ottoman power in Europe. On 2 September 1686 Budin was captured by the troops of the Holy League.
Military
Military conflicts were a regular occurrence on the Ottoman-Habsburg border, so there was a constant need of a significant military presence. If the sultan or the great commander was not present, then the post of general commander was taken by the pashas of Budin. His power was enlarged to the vilajet of Temeşvar, Eğri, Kanije and to Varad. The title of the Budin pasha was enhanced to be the great commander from 1623. The number of the troops in the province at this time is difficult to estimate. There are documents to show 10,200 soldiers in the fortresses in 1546, and 12,451 soldiers in 1568. Auxiliary troops called spahi's were also present, but no accurate figures are available. The cost of maintaining this large force put pressure on the budget of the province. In 1552, for example, the Porte sent 440,000 gold coins to Budin to provision the army.
Fortresses
The Ottoman Empire put all efforts to strengthen the stronghold at Budin. They built several rings of defence around Budin and defended roads for supplies to Vienna, as their aim was to crush the capital of the Habsburgs, which they did not succeed. The most important fortresses around Budin were Esztergom, Székesfehérvár, and also less important Vác and Visegrád. To the south, the most relevant fortress was Szigetvár.
Budin
In the 145 years Ottoman era, the city of Budin was not converted to the "Italian" type of defensive fortress, which was in the fashion at that time. The old fortress was enlarged by the "Víziváros" walls and a small stronghold was built on the Gellért hill. The Budin Castle was already standing on a Medieval castle, with more or less same walls as per now. Various towers were built by Ottomans i.e. "Murad pasha tower" between 1650 and 1653. The walls were enlarged in Gellért hill, in Rózsadomb, Nap-hegy and on the side of the Danube. The main castle was also walled inside, where they have made small openings so that the sentry could move easily.