Rice fell off a lorry and closed a motorway after grains stuck in the tarmac made lanes "dangerously slippery".
Five pallets fell on to the westbound carriageway of the M4 near junction 16 Swindon west and 17 Chippenham at about 02:00 BST.
The motorway was closed until 05:15 and lanes one and two were resurfaced before it was "safe enough" for traffic, Highways England said.
The road reopened shortly after 13:00.
On Twitter, officers from Wiltshire Police specialist operations team, said the rice "smells nice".
M4 westbound 2 lanes closed prior to junction 17 after a lorry lost 5 pallets of pilau rice and spread across the carriageway. May take time to clear. Smells nice. Thanks @HighwaysSWEST for the assist. pic.twitter.com/lG5WBKvsBh— Wilts Specialist Ops (@WiltsSpecOps) September 10, 2020