European shares and the pan-European STOXX 600 edged higher on Tuesday. A rally in energy stocks primarily drove the market gains.

The oil and gas sector jumped as much as 1.4%. Crude oil prices reached their highest levels for the month during the session.

Geopolitical uncertainty in the Middle East triggered the surge in oil prices. Tensions surrounding the Strait of Hormuz raised concerns about potential supply disruptions.

Higher energy prices directly benefited oil and gas company shares. Broader inflation concerns capped the market's overall gains.