Oil prices surged Wednesday, with the global benchmark Brent hitting $80 a barrel for the first time since May, after the U.S. reported a decline in both oil production and stored inventories.

A variety of other factors also propelled prices higher, including concerns over Hurricane Florence and some storms moving toward the Gulf of Mexico, tightening global oil supplies due to U.S. sanctions against Iran, and weakness in the dollar, analysts said.

Light,...