Illinois State Police said the truck was driving west on I-80, when its headlights allegedly malfunctioned just before 2:45 a.m. near Shepley Road. The truck entered the center median and rolled over on the driver's side.
There were no injuries reported, but 7,700 pounds of frozen pies were lost, police said.
RELATED: I-80 accident: Cattle hauler charged with DUI after cows spill into roadway in Joliet crash
Both lanes of westbound I-80 were closed until about 7:45 a.m. During that time, traffic was forced onto the shoulder.
At one point, westbound delays started at Interstate 55, and eastbound delays started at the Minooka exit.
Drivers were advised to use Routes 52 and 6 as alternate routes.