The Oxford, Witney and Fairford Railway was a single track railway branch line, 22 miles (35 km) long, in Oxfordshire and Gloucestershire. It was opened in succession by two companies, the first in 1861 to connect the important woollen town of Witney to the main line network, and the second in 1873 as the rump of an ambitious scheme to connect to Cheltenham, but which ran only between Witney and Fairford. The junction with the main line was at Yarnton, north of Oxford.