Shares of energy companies fell as oil futures recouped some of their recent losses.

U.S.-traded crude futures rose by more than 2%, trimming their losses to roughly 30% for the second quarter, which concludes Tuesday.

Crude came under upward pressure, the U.S. and Iran agreed to end days of back-and-forth fighting around the Strait of Hormuz and resume peace talks, said officials from the U.S. and other countries involved in the negotiations.

Write to Rob Curran at rob.curran@dowjones.com

(END) Dow Jones Newswires