The A701 branches off the M74 at Beattock, goes through the town of Moffat, climbs to Annanhead above the Devil's Beef Tub (at the source of the River Annan) before passing the source of the River Tweed and carrying on to Edinburgh. Until fairly recent times the ancient route to Edinburgh travelled right up Annandale to the Beef Tub before climbing steeply to Annanhead. The present road ascends northward on a ridge parallel to Annandale but to the west of it which makes for a much easier ascent.