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.
Police in the Borders have arrested and charged two men with drugs offences.
A court has heard how a drunk man kept lookout for a Carlisle floods looter - and then stole property himself.