Between the late 18th century and 1947, it used to be a suburb of the town of Gorizia (now in Italy). When the city was partitioned in 1947, most of the city center remained in Italy, while its eastern suburbs were annexed to Yugoslavia. Part of Pristava (Rafut) remained in Italy, and while part of it became part of Slovenia. In some cases, the border was drawn literally between individual houses. Until Slovenia's entry into the Schengen zone in 2007, a local border pass functioned in Pristava.