In 1842, the Upper Silesian Railway Company, licensed since 1839, opened the first two sections of its main line: Breslau () to Ohlau () on 22 May and Ohlau () to Brieg () in August. These are the oldest railway sections of present Poland. Step by step the Upper Silesian Railway ("Oberschlesische Eisenbahn", OSE) line was extended, in 1846 connecting Katowice. In 1847 Mysłowice at the border of Austrian Galicia was reached and the connection to "Kraków and Upper Silesian Railway" complete.