Dukedom and Zahumlje were conquered by Raški major prefect Stevan Nemanja. Thirty years later, Zahumlje was invaded by Andrija, the Duke of Croatia and Dalmatia. In 1254, Béla IV of Hungary invaded Bosnia and Zahumlje. From 1304, Zahumlje was ruled by Mladen Šubić, then again for a short period by local župan, and from 1325 by Stjepan II Kotromanić. Republic of Ragusa (Dubrovnik), acquired it from Bosnian rulers in several purchases over several decades, first in 1333 and then on 15 January 1399. King Tvrtko II confirmed purchase of the Bosansko Primorje to Dubrovnik on 24 June 1405. The old Ston was located on the slopes of the hills of Gorica and St. Michael, south of the Ston field. There were several early Christian churches there, the largest of which was St. Stephen's Church. The bishopric church of Mary Magdalene stood until it was bombed by the Allies in 1944. The only church that still remains is the church of St. Michael, built in the middle of the late antique castrum. The original old town was demolished in the earthquake of 1252. With the arrival of the Republic, a new city was built on today's location. When renovations were made at the church of St. Michael at the top of the hill, fragments of Roman decorative plaster, Roman tombstones and antique ceramics were found, confirming this assumption. According to some sources, Ston experienced a destructive civil war in 1250, and in these conflicts the city suffered a great deal of destruction. 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 II Kotromanić. That year, people from Dubrovnik settled Ston, and immediately began to invest and rebuild, and established 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. Modern history At the end of the 12th century Orthodoxy appeared in the Peljesac area, at the same time Catholic bishop is expelled from Ston. Since the end of the 14th century Orthodox priests are no longer on Pelješac. When the Pelješac peninsula came under rule of Dubrovnik, since 1333 Catholic population predominantly