The Bristol and Gloucester Railway was a railway company opened in 1844 to run services between Bristol and Gloucester. It was built on the 7 ft (2,134 mm) Brunel gauge, but it was acquired in 1845 by the 4 ft 8+1⁄2 in (1,435 mm) standard gauge Midland Railway, which also acquired the Birmingham and Gloucester Railway at the same time.
Legal and practical difficulties meant that it was some time before through standard gauge trains could run on the line; that only became possible in 1854 with the conversion of most of the line to mixed gauge and the opening of the Tuffley Loop.
Even then the station at Gloucester was awkwardly sited, until in 1896 a through station was opened; it later became known as Gloucester Eastgate station.
The Tuffley Loop and Eastgate station were closed in 1975. Part of the original line near Bristol was closed in 1970, trains being diverted over the ex-Great Western Railway route through Filton. However, the remainder of the route is in service currently as part of the busy Bristol to Birmingham main line.