Around 400 metres of road is covered in glue on the A76, near Sanquhar, after a lorry overturned.
The road is expected to be closed for several hours.
The current diversion is 50 miles long.
More top news
A look ahead at the forecast for the Border region.
Over the next eight years the populations of all but nine local authorities in England will increase. Four of those are in Cumbria.
The Psychoactive Substances Act will come into effect tomorrow, and could see offenders jailed for up to seven years.