He built a number of buildings, including a mosque, a closed marketplace, a public bath, a bridge, a hostel, and the saray which gave the city its present name.
[citation needed] The Berlin Treaty was imposed by the Great Powers upon the rapidly dissolving Ottoman Empire, which entered the negotiations from a position of weakness, with many of its former territories having achieved de facto independence over the previous half-century and having just been defeated in the Russo-Turkish War.
Logistical and organisational issues began arising in the Ottoman army, such as inability to feed and clothe its soldiers, including the nineteen garrisons stationed in the Bosnia Vilayet, seventeen of which were made up of local Bosnian Muslims.
[5] In a January 1878 report, the Austro-Hungarian consul stationed in the city of Sarajevo, Konrad von Wassitsch, noted to his Vienna superiors that "Ottoman administrative bodies have no authority, and the population has lost its confidence in the government.
Because of its almost universal rejection by the global powers, the San Stefano Treaty was never implemented, and in the end only set the stage for a conference organized by German Empire chancellor Otto von Bismarck three months later in Berlin.
Uncertainty over San Stefano brought about rumours of imminent Austro-Hungarian occupation in Sarajevo as early as April 1878, well before the Berlin Congress, evoking different responses from the city's various ethnicities and classes.
Hoping that a smooth transfer of power would enhance their value to the new rulers and help preserve their privileged status and property rights, wealthy and influential landowners, despite being closely tied to the officials of the waning Ottoman regime, were now open to Austro-Hungarians.
Members of Sarajevo's Muslim landowning elite showed public support for the Austro-Hungarian occupation at a meeting in April 1878 at the Emperor's Mosque, reasoning, as one cleric put it, that "it was evident the Ottoman Empire had neither the power nor the support to rule the land" before further asserting that "a ruler who cannot control his land also loses claim to his subjects' obedience and since no Muslim would want to be a subject of Serbia or Montenegro, Austria-Hungary is the only viable alternative".
In addition to urging the population of Bosnia to unite in opposing the possible Austro-Hungarian occupation, the petition bore the imprint of Islamic religious conservatism, advocating making shari'a the exclusive law of the land, demanding the dismissal of all Christian officials from the still-ruling Ottoman service, appealing for formation of an assembly to control the government, calling for removal of bells from the recently built Serb Orthodox Cathedral, and requesting demobilization of Ottoman troops.
[7] Reflecting personal politics and worldviews of two Sarajevan Islamic conservatives, well-respected in the local Muslim community, the petition reportedly also became a tool in the rivalry among the Ottoman officials in Bosnia.
Mazhar's biggest obstacle in this regard was his own deputy Konstan Pasha, a Greek man of Orthodox faith who was uniformly described amongst the foreign consuls in Sarajevo as the only Christian to hold high office in the Ottoman civil administration in Bosnia.
[8] When several upper-class Muslims as well as some Serbian Orthodox leaders learned of the petition, they urged its redrafting without the explicitly anti-Christian demands, which was done, and a new version, written by an Ottoman official, began to circulate.
[9] In its very first week, the assembly underwent four changes in composition as elite Muslims sought a formula that would include all ethnic, religious and financial class groups yet preserve their own dominance.
[10] Steered along and finessed by the Muslim upper class members who had the most representation and influence, all the while avoiding divisive topics, the assembly managed to cobble together minimum unity and consensus throughout the month of June 1878.
At the Berlin Treaty negotiations, the Austro-Hungarian side was represented by the k. und k. foreign minister, count Gyula Andrássy, who was keen to expand the Imperial and Royal influence in the Balkans.
As a show of force and statement of intent, simultaneously with the start of the treaty negotiations in mid June 1878, the Austro-Hungarian Army began a major mobilization effort with more than 80,000 troops on its southeast border, ready to go into Bosnia Vilayet.
On 28 June 1878, the terms and stipulations of the Treaty of Berlin were announced and according to its 25th point, Austria-Hungary received a mandate to "occupy and administer the Bosnian Vilayet",[11] but not to annex it.
[13] By the next morning, city was abuzz with rumours and trepidation as Wassitsch made rounds to visit with upper-class Muslim landowners and the main leaders of the local People's Assembly, Mehmed-beg Kapetanović, Sunulah Sokolović, and Mustaj-beg Fadilpašić, reminding them of the generous benefits that would come to those loyal to the new regime.
This created a strange situation with Sokolović, president of the People's Assembly and a member of the regional council, taking the unusual step of opposing the governor's recommendation by advocating peaceful transition of power to Habsburg officials while Fadilpašić and Kapetanović backed him at the same meeting.
[15] A tall, strong, and physically imposing 44-year-old agitator, Hadži Lojo was quite well known locally, having for years served as imam at a small Sarajevo mosque and taught religion at a trade school.
[17] Sharing both his vocation and educational background with Hadžijamaković and Kaukčija, the two Gazi Husrev-bey Mosque clerics behind the April Petition, Hadži Lojo very well understood the local Muslim political and religious culture in which he operated and skillfully exploited it to galvanize the crowd into action.
Following his impassioned speech, Hadži Lojo unfurled a green flag[13] and led the crowd from the mosque to Konak across river Miljacka to confront governor Mazhar and other Ottoman officials.
Though at first urging the local population to accept Austro-Hungarian occupation, he then sat at subsequent regional council meetings in enigmatic silence, leaving the foreign consul to ponder his personal attitude towards possible armed resistance as the invasion drew near.
In his report, Wassitch noted seeing shopkeepers closing up before noon in order to go home and claim weapons as the final assault on the Ottoman authority in the city was being prepared by Hadži Lojo.
Just after noon, a crowd led by the charismatic populist leader showed up in front of the Konak where Ottoman officials and local Muslim elite had fled for protection.
Around 4 p.m. Hafiz's remaining Ottoman force tried to clear the street next to the Konak building, but the crowd, now swollen with defecting soldiers, fought back as the two groups exchanged close-range fire.
[20] On 29 July 1878, one day after the People's Government was proclaimed in Sarajevo, the Austro-Hungarian Army under the command of feldzeugmeister (general) Josip Filipović, an ethnic Croat from Gospić, entered the Bosnia Vilayet at four different crossings.
[21] With a force of some 80,000 soldiers in total, 9,400 of which were 'occupation troops' under feldmarschallleutnant (lieutenant-general) Stjepan Jovanović, another ethnic Croat from Lika and former k. und k. consul in Sarajevo from 1861 until 1865, whose role was to move across the border from Austrian Dalmatia into Herzegovina and hold places once they're taken by the main fighting force, Filipović's Austro-Hungarian Army moved swiftly down through northern Bosnia, seizing Banja Luka, Maglaj, and Jajce,[22] encountering several successful resistance ambushes along the way that slowed down their progress.
Within days of crossing the border into Bosnia, feldzeugmeister Filipović came to the conclusion that the Austro-Hungarian 'soft strategy' of capturing town-by-town is not going to work and that the aim of occupying Sarajevo would require more manpower and more brutal tactics, so he requested and received reinforcements.
On the morning of Monday, 19 August around 6:30am, the Austro-Hungarian Army began its artillery bombardment of Sarajevo using 52 cannons with feldzeugmeister Filipović committing a sizable portion of the total 14,000 troops under his command for this action[25][26] to the hills surrounding the city.