SpaceX rocket Starship SN10, after a seemingly successful landing, exploded on Wednesday.

It was the third straight flub involving the prototype of the Starship rocket, which SpaceX hopes one day to send to Mars. The last two test flights also ended in crashes.

As seen on SpaceX video, the rocket appeared to have landed properly after its flight during the third attempt, although flames were coming out at the bottom and crews were trying to put them out.

Also Read | Watch: Elon Musk’s SpaceX’s SN10 explodes 8 mins after successful landing

A beautiful soft landing,” a SpaceX commentator said on the live broadcast of the test flight.

However, a few minutes later the rocket exploded. It was thrown into the air and crashed back to the ground.

No explanation was immediately provided.

As seen on SpaceX video, the rocket appeared to have otherwise landed properly after its flight.

Also Read | ‘I’m an alien’, says Elon Musk on managing multiple things

SpaceX founder Elon Musk has been developing the next-generation Starship rocket for the purpose of going to Mars — though two prototypes blew up in spectacular fashion on their recent test runs.

The latest prototype, named SN10, for “serial number 10,” took off a little before 1120 GMT from Boca Chica, Texas.

The two other prototypes (SN8 and SN9) crashed on landing, in December and then in early February.

The tests take place in a nearly deserted area leased by SpaceX in South Texas near the border with Mexico and next to the Gulf of Mexico — the area is vast and empty enough that an accident or explosion would not cause damage or fatalities.

ALSO READ | Who is Yusaku Maezawa: Japanese billionaire offering 8 tickets for a trip to moon

SpaceX aimed to launch the prototype as high as 10 kilometres, or about 32,800 feet altitude.

Apart from Mars, the rocket, if it becomes operational, could also prove useful for closer trips, especially to the Moon.

The prototype represents the upper stage of a two-part system: Eventually, a roughly 23-story booster called Super Heavy would heave the Starship spaceship toward orbit.

Musk’s long-term vision is for the system to one day fly astronauts to the moon and power hypersonic travel on Earth. He has said he plans to build 1,000 Starships in order to carry people and cargo to Mars.