Šamorín (ˈʂamɔriːn; Somorja, Sommerein) is a small town in western Slovakia, southeast of Bratislava. The name is derived from a patron saint of a local church Sancta Maria, mentioned for the first time as villa Sancti Marie (1285). Today's name is an adaptation of the original name: Zent Maria – Samaria – Somoria – Šamorín. The town is located on the Danubian Flat in the Žitný ostrov island, near the Gabčíkovo dam by the Danube around southeast of Bratislava and west of Dunajská Streda. Administratively, the town belongs to the Trnava Region, Dunajská Streda District. The oldest artifacts indicating the settlement of the area are dated to the Neolithic and Eneolithic Period. The settlement of the location is documented also for the Bronze Age and the Iron Age. Later archaeologic research (2008) uncovered artifacts from the Early and High Middle Ages (remnants of settlements, dwellings, farm buildings). After the Mongol invasion, the village was settled by German "guests" who had the leading role in the town administration. The German minority was given a royal privilege to apply Pressburg Law (now Bratislava) and lived in the town until the end of the Middle Ages. The presence of other ethnic groups like Pechenegs and Székelys is also documented. The small Hungarian town was mentioned for the first time in 1238 as ecclesia Sancte Mariae and was a prominent port by the Danube during the Middle Ages and the market center of Rye Island. Agriculture also played a major role in the town's development. As a result of this prosperity, its citizens enjoyed a brisk trade in the new technologies and many shipyards on the Danube. However, with rise of Pressburg, the importance of the town began declining. Šamorín eventually lost its right to the status of royal free city granted in 1405 during the reign of Hungarian King Sigismund. In the sixteenth century, the city became notable again because of the witch trials held there. After the Austro-Hungarian army disintegrated in November 1918, Czechoslovak troops occupied the area, later acknowledged internationally (contested by Hungary) by the Treaty of Trianon.