A US F-16 fighter aircraft crashed near the Strait of Hormuz amid the ongoing war with Iran, but its pilot was rescued safely, President Donald Trump said.

The incident took place on December 4. A US drone boat was used to rescue the pilot, who received medical care after the operation.

The pilot was in good condition, Trump told reporters, adding that the cause of the crash had not yet been confirmed.

Trump said the aircraft may have been hit in an attack or crashed due to a technical problem. Both possibilities were being examined.

US military officials began an investigation to determine the cause of the crash. The Pentagon did not immediately issue a detailed statement.

The rescue operation used a drone boat identified as Saronic Corsair. It was not the first rescue operation involving US forces near the Strait of Hormuz since the Iran war began.

The Strait of Hormuz is one of the world's key maritime trade routes. International attention remained focused on security and military developments in the region amid the Iran-US conflict.