The southbound I-990 ramp leading to the eastbound lanes of the I-290 reopened at around 8:50 p.m.
The ramp was closed at 12:30 in the afternoon when a tractor-trailer overturned on the entrance ramp, Amherst police reported.
The driver of the tractor trailer told police he lost control of his rig when swerving to avoid a car. The trailer toppled and split open and about a dozen boxes containing candy spilled onto the road, authorities said.
Volunteers from North Bailey Fire Company and Twin City Ambulance paramedics treated the driver, who was taken to Millard Fillmore Suburban Hospital for cuts to an elbow.
Police are continuing their investigation into the crash.