The Cheddar Valley line was a railway line in Somerset, England, running between Yatton and Witham. It was opened in parts: the first section connecting Shepton Mallet to Witham, later extended to Wells, was built by the East Somerset Railway from 1858. Later the Bristol and Exeter Railway built their branch line from Yatton to Wells, but the two lines were prevented for a time from joining up. Eventually the gap was closed, and the line became a simple through line, operated by the Great Western Railway.