A tractor-trailer veered into a highway median east of Binghamton, dumping tons of what witnesses described as a manure-like material.

The stinky situation developed just after 4 p.m. Tuesday on Route 17 when the out-of-control westbound rig went off the roadway.

The crash occurred between exits 83 and 84 of the expressway in the town of Sanford.

The driver of the truck reportedly sustained minor injuries. He was taken to a hospital to be evaluated.

New York State Police say the westbound passing lane of Route 17 was closed for several hours after the crash while the mess was cleaned up.

Although most of the sludge-like contents of the tractor-trailer wound up in the median, some spilled onto the highway.

The truck was believed to have been loaded with about 34 tons of the material.

The state police Commercial Vehicle Enforcement Unit was called to investigate the crash.

It was not known whether tickets were going to be issued.

A portion of Route 17 in Sanford was closed for hours after the crash on May 22, 2018. (Photo: New York State Police via Facebook)

Contact WNBF News reporter Bob Joseph: bob@wnbf.com

For breaking news and updates on developing stories, follow @BinghamtonNow on Twitter.