SpaceX's massive Starship spacecraft exploded in a dramatic fireball during testing in Texas late on Wednesday, the latest in a series of setbacks for billionaire Elon Musk’s Mars rocket program.

The explosion occurred around 11 p.m. local time while Starship was on a test stand at its Brownsville, Texas Starbase while preparing for the tenth test flight, SpaceX said in a post on Musk’s social-media platform X.

The company attributed it to a "major anomaly" and said all personnel were safe. Its engineering teams were investigating the incident, and it was coordinating with local, state and federal agencies regarding environmental and safety impacts, the company said.