Samobor is a fortified town on the right bank of the Drina River, downstream from Goražde. It belonged to the county of Pribud and was the residential place of the Bosnian noble family Kosača. The earliest preserved mention of Samobor in historical sources comes from a letter of the Ragusan authorities addressed to their envoys at Duke Sandalj Hranić Kosača, dated January 25, 1423. The letter was written in the sub-town of Samobor. In it, it is mentioned that a letter from Ragusan envoys from Podsamobor arrived in Ragusa on January 13, 1423. The negotiations between the Ragsuan nobility and the Bosnian nobleman revolved around the concession of the Sokol fortress in Konavle.

“Ad eosdem oratores kad voiuodam Sandagl. Rector di Ragusa col suo consiglio alli nobili et saui ser Nicola di Ma. de Goze et ser Biagio di Georgio citadini et ambaxadori nostri a voiuoda Sandagl salutem. Adi 23 di questo mese riceuessimo una vostra letera data di la Sotto Samobor adi XIII pur di questo. Et ancora riceuessimo una letera di voiuoda Sandagl per la quale el scriue che a inteso che noi semo per partire Canale, zoe la parte nostra et che pero noi ne ricordemo di quel che queli fu promesse per noi, zoe che quel che li sara dato in parte sia in lo luogo doue sta Bogheta.” (25.1.1423) Dubrovnik State Archives, Lettere di Levante vol. VIII, f. 142v.