The Grand Duchy of Oldenburg Railway (Großherzoglich Oldenburgische Eisenbahn or GOE) was the railway company that was run as a state railway for the Grand Duchy of Oldenburg (Großherzogtum Oldenburg), part of the German Empire.
Compared with the other states in the German Empire, Oldenburg's first railway line arrived relatively late. In this sparsely populated and economically poor area, the construction of railways appeared for a long while to be unsustainable due to the financial costs. In addition, the various ideas of its neighboring states, Hanover and Prussia prevented railway projects from coming to fruition for a long time.
Finally in 1864 a treaty was agreed between Prussia and Oldenburg over the construction of a railway line from Bremen to Oldenburg. At the same time Prussia committed itself to building a railway line from Heppens – later Wilhelmshaven – to Oldenburg (the Wilhelmshaven–Oldenburg line). The Grand Ducal Railway Commission, set up in 1864, was transferred on 1 April 1867, to the Grand Ducal Railway Division of Oldenburg.
On 17 November 1866, the first section of the route Oldenburg–Delmenhorst was opened; in July 1867 its extension to Bremen followed, and in September of the same year the section from Oldenburg to Heppens was finally completed.
In 1869 the east-west line from Bremen to Oldenburg was extended to what was then Prussian Leer in East Frisia by a line from Oldenburg to Leer with a junction to the Hanoverian Western Railway and, in 1876 by the section from Ihrhove to Nieuweschans with a junction to the Dutch Railways.