Until 1991 it was the border between Italy and Yugoslavia. When Slovenia gained independence in 1991, it became the Italian–Slovenian border. The border has been an EU internal border since 2003 and a Schengen border since 2007.