The turbulent times at the beginning of the 14th century spread across the entire country of Zahumlje. The usurpation by the Branivojević brothers, forced the people of Dubrovnik to fight them in 1326 with the help of Stjepan Kotromanović (Stephen II, Ban of Bosnia). That year, Dubrovnik occupied Ston. The Dubrovnik people immediately began to build and establish a new Ston, to defend the Pelješac and protect the slaves from which they had earned big revenue. Since the conflict between the Ban in Bosnia and Serbian king, the Dubrovniks purchased Pelješac with Ston from both rulers in 1333.