Little by little the Austro-Hungarian regiments pushed the rebels back into the more densely populated city center and as they reached the outskirts of the Muslim district, a bloody battle ensued. The rebels jumped down from the roofs of houses, brandishing daggers and knives to attack the advancing soldiers. In the heart of the muslim district, the rebels had occupied the Ali Pasha's Mosque which the Austro-Hungarians failed to capture, even after five attempts. It was only when the Styrians from the 27th regiment arrived, that the mosque fell with 50 rebel casualties to mourn. Another section of the 27th regiment moved into the Serbian district and were immediately greeted by gunfire from the minaret of a mosque. Austro-Hungarian forces were even shot from behind as they were taking the konak (the ottoman governor's palace). Even in the now burning city's wooden houses, the enemy was still fierce in their fighting. But by 13.30 pm, most rebels were driven out of the city towards Romanija and by the early evening Sarajevo ultimately fell.