The station was opened in 1860 as part of the Galician Railway of Archduke Charles Louis and is located about 15 km (9.3 mi) from the border with Ukraine at Medyka-Shehyni. It has standard gauge tracks for connections to the rest of Poland (PKP rail lines 91, 102 and 615), as well as broad gauge tracks for the connection with Ukraine (PKP rail line 92). Hence it serves as an important junction between the railway systems of Poland and Ukraine.
After the 2022 Russian invasion of Ukraine it has become an important transfer point for refugees leaving Ukraine, with about 500,000 refugees passing through the station in the first month of the war.[1][2][3]