On 30 June the imperial main army entered the city of Pest, to which the Turks had set fire shortly before. After the army crossed the Danube at Vác, it began the siege of Buda, which was defended by approximately 7,000 Turks. The imperial army of 34,000 men began the bombardment of Buda's fortress with 200 cannons on 14 July 1684, the anniversary of the beginning of the siege of Vienna. Field Marshal Graf Ernst Rüdiger von Starhemberg was assigned to conduct the siege.
On 19 July imperial forces took control of the lower part of the town of Buda. However, since too few troops were available to occupy it, Ernst Rüdiger ordered the houses in that part of the town burned down. Throughout July and August the imperial army made several attempts to attack the fortress, but all were repelled by the Turkish defenders.
At the beginning of September, an imperial general reported that the number of soldiers fit for service had shrunk to 12,500, and morale was low. On 11 September an imperial auxiliary corps reached Buda, providing new momentum to the campaign.
On 22 September a Turkish relief army arrived and attacked the besieging forces. The imperial army managed to repel them but was unable to defeat them. The Turkish relief army then engaged imperial troops in repeated nuisance attacks which, coupled with losses caused by the Turkish city garrison, caused a plunge in morale. Ernst Rüdiger, who was severely wounded and facing sustained criticism from his army, had to be replaced. The final blow was a spell of poor weather conditions throughout October, and the decision was made to withdraw.
On 30 October the imperial army withdrew after a siege that had lasted 109 days. Several factors had caused the size of the allied force to shrink to about half its original size: battle losses, dysentery and a fever epidemic, poorly dug trenches and tactical errors in the siege. Capt. Paul Joseph Jakob von Starhemberg and the Christian allies after this failed enterprise had sustained losses of between 24,000[4]—30,000 men.[5] Ironically, the blame for the failure was laid on the man who had only led the army at the beginning of the siege: Ernst Ruediger von Starhemberg.