In 1839 , the railway between Dresden and Leipzig was opened . A terminal of the first German long distance railway to Dresden ( the capital of Saxony ) , in 1839 , Leipzig became a hub of Central European railway traffic , with the renowned Leipzig Central Station , the largest terminal station by area in Europe .