Višegrad (, ) is a town and municipality located in eastern Republika Srpska, an entity of Bosnia and Herzegovina. It rests at the confluence of the Drina and the Rzav river. As of 2013, it has a population of 10,668 inhabitants, while the town of Višegrad has a population of 5,869 inhabitants. The town includes the Ottoman-era Mehmed Paša Sokolović Bridge, a UNESCO world heritage site which was popularized by Ivo Andrić in his novel The Bridge on the Drina. A tourist site called Andrićgrad (Andrić Town), dedicated to Andrić, is located near the bridge. Etymology Višegrad is a South Slavic toponym meaning "the upper town/castle/fort". Geography Višegrad is located at the confluence of the Drina river and the Rzav river in eastern Bosnia and Herzegovina, on the road from Goražde and Ustiprača towards Užice, Serbia, which is part of the geographical region of Podrinje. It is also part of the historical region of Stari Vlah; the immediate area surrounding the town was historically called "Višegradski Stari Vlah", noted as an ethnographic region in which the population was closer to Užice, located on the Serbian side of the River Drina, than to the surrounding areas. History Middle Ages The area was part of the medieval Serbian state of the Nemanjić dynasty; it was part of the Grand Principality of Serbia under Stefan Nemanja (r. 1166–96). In the Middle Ages, Dobrun was a place within the border area with Bosnia, on the road towards Višegrad. After the death of Emperor Stefan Dušan (r. 1331–55), the region came under the rule of magnate Vojislav Vojinović, and then his nephew, župan (count) Nikola Altomanović. The Dobrun Monastery was founded by župan Pribil and his family, some time before the 1370s. The area then came under the rule of the Kingdom of Bosnia, part of the estate of the Pavlović noble family. The settlement of Višegrad is mentioned in 1407, but is starting to be more often mentioned after 1427. In the period of 1433–37, a relatively short period, caravans crossed the settlement many times. Many people from Višegrad worked for the Republic of Ragusa. Srebrenica and Višegrad and its surroundings were again in Serbian hands in 1448 after Despot Đurađ Branković defeated Bosnian forces. According to Turkish sources, in 1454, Višegrad was conquered by the Ottoman Empire led by Osman Pasha. It remained under the Ottoman rule until the Berlin Congress (1878), when