BP has reported its highest profit in four years after rising oil prices during the conflict in the Middle East boosted the company’s latest results. The energy group said profit for the April-to-June period reached $5.73bn (£4.26bn), marking a sharp increase.

The update ties BP’s stronger performance to higher crude prices, which were pushed up as the war involving Iran added to market tensions. For large oil producers, changes in global prices can quickly feed through to earnings, and BP’s latest figures show how closely profits can track geopolitical shocks.

The results also drew criticism from environmental groups, which accused the company of profiteering while households and businesses continue to face pressure from energy costs. That reaction reflects a wider debate over whether major fossil fuel companies should benefit so strongly during periods of instability.

BP’s latest earnings highlight the financial upside that volatile oil markets can bring for energy majors, even as the political and environmental backlash grows. With prices influenced by conflict and supply concerns, the company’s performance is likely to remain closely watched.