of 15th century saw the Ottoman Empire advance, invade, and occupy Bosnia for the next 400 years. Mosque complex in the picture (left) the Hajji Ahmed the Ducat Minter's Mosque (more commonly known as the Glavica ("Head") Mosque, called after the knap above town on which it is erected) Constructed upon design by Mimar Sinan in 1574. (some date to 1587), it is situated on a hill overlooking the old town of Livno, the river Bistrica and the spring Duman in the upper section of the old town of Livno. The mosque complex consists of a compact main building of the mosque under a dome and uncharacteristically short minaret, with a clock tower which was erected around 1659, and is still in use today. Within the perimeter is an almost 500-year-old necropolis with characteristic early Bosnian Muslim tombstones and later ones. In 1878, Livno was occupied by Austro-Hungarian forces. Soldiers from Dalmatia and an infantry division from Osijek fiercely fought against 3,000 Ottoman and Muslim militias around Livno, finally capturing the town on September 27. The Congress of Berlin approved of Austro-Hungarian rule in Bosnia and Herzegovina that year. From 1918 it was part of the Kingdom of Serbs, Croats and Slovenes. In 1929 the kingdom was renamed the Kingdom of Yugoslavia and divided into nine banates (banovine). Livno was divided into the Littoral Banovina, with its centre in the city of Split. This division brought Livno politically closer to Croatia. In 1939, the banates were further redrawn so that there was a Croatian banate (Banovina Hrvatska) of which Livno was also part. From 1941–45, Livno was part of the Axis Independent State of Croatia, and was labeled as a pro-Ustaše region. The territory that partisans liberated and managed to keep under their control from November 1942 to January 1943 (dubbed the Republic of Bihać) included all of rural Western Herzegovina west of Neretva and Široki Brijeg, including Livno. Livno and its area, under partisan control from August to October 1942, was very important for partisan resistance, as key Croatian Peasant Party members from Livno Florijan Sučić and Ivan Pelivan joined the partisans resistance and mobilized many other Croats. Croatian writer Ivan Goran Kovačić joined the Partisans in Croata, writing his epic poem "Jama" ("The Pit") during his time with the resistance. He finished it in Livno. When Croatian Ustaše forces drove the partisans out of Livno in October 1942.