The rapid development of industrial production in Nejdek surroundings in the late 19th century significantly contributed to the construction of the railway line, which in 1899 merged Karlovy Vary with the Saxon Johanngeorgenstadt, to allow not only expansion of personal, but especially freight transport. All exacting construction of the railway from Nejdek to the state border, measuring 27 km and crossing altitude difference 360 m, lasted only two years. In the first stage of construction, the part Nejdek – Horní Blatná was opened for freight at 28th in November 1898. 15 May 1899, the second section from Horní Blatná to Potůčky and further into Saxony was inaugurated.
Just in front of the station in the direction Nejdek, the designers had to deal with the field depression, through which the railway passes by the impressive viaduct. Challenging technical constructions, which had to be removed enormous amount of soil, took specialized company Czeczowitczka E. and A. Weiner from Brno. The Pernink viaduct consists of six stone arches with a span of 2 x 8 m, 2 x 10 m and 2 x 12 m; the highest point reaches a height of 20 meters. The building has the shape of an arc toward the slope. Similar, but smaller stone viaducts with a span of eight, respectively ten meters were built also at Nové Hamry.
On the construction worked hundreds of workers from all over the Austro-Hungarian Monarchy, Czechs, Poles, Croats, Slovenes and others. There are also the renowned Italian “barabas” - wage workers and experienced railway tunnellers who built in Bohemia the known “semmerink” form Hrob to Moldava.
Railway viaduct in Pernink represents a significant technical monument, showing maturity of railway engineering in the Czech Lands in the late 19th century. It is the highest structure of its kind in the network of Czech Railways (902 m asl), which still serves its purpose.