The first railway section on the territory of today's Republic of Croatia, then part of the
Austrian Empire and
Austria-Hungary, was built in 1860 in
Međimurje: the railway line from
Nagykanizsa in Hungary via
Čakovec and
Kotoriba continued to Pragerski in Slovenia. Although only a small part of the railway passed through Croatian territory (Međimurje was part of Croatia at the time the railway was built, but in January 1861 it was annexed to Hungary by the decision of Vienna) was built only 35 years after the first European railway, which was established in 1825 between the towns of Stockton and Darlington in England. Railroads that connected
Rijeka, the most important port in Croatia, with
Trieste (and further with
Vienna), and with
Zagreb (and further with
Budapest) were put into service in 1873. Between World War I and the
breakup of Yugoslavia, the railways in Croatia were operated by the state-owned
Yugoslav Railways (JŽ).
Croatian Railways was founded in 1990 from the former Yugoslav Railways Zagreb Division, in the process of
Croatia's secession from Yugoslavia. Its vehicle fleet was initially the one it inherited at the time of the breakup of Yugoslavia. The company ceased to exist in 2006 and its assets were taken over by the newly founded company Hrvatske Željeznice Holding d.o.o. The operation was then provided by the holding's four subsidiaries for infrastructure management (
HŽ Infrastruktura), passenger transport operation (
HŽ Putnički prijevoz), freight transport operation (
HŽ Cargo) and traction/locomotives (HŽ Vuča vlakova). These companies were further split out in 2012 in accordance with
EU Directive 91/440 HŽ Vuča vlakova was incorporated into HŽ Cargo at the same time. == Types of passenger train lines ==