Action sports star Travis Pastrana crashed on back-to-back "TP Roll" attempts Thursday night in X Games 17 Moto X Best Trick, ending the Pastranathon during its first event.

Pastrana, who was taken off on a stretcher and transported to a hospital for X-rays, broke his right foot and ankle, according to medical officials working with ESPN. He was discharged from the hospital Thursday night. The injury will require surgery at a later date.

Pastrana's planned NASCAR Nationwide Series debut on Saturday will be put on hold. He is also out of the X Games.

"I am sorry this happened and will be back in action as soon as I can. I look forward to Pastranathon 2012 at X Games 18," Pastrana told ESPN following his release from the hospital.

Going into the X Games, Pastrana had planned to compete in Best Trick and Freestyle on Thursday and Friday, fly to Indianapolis to make his NASCAR Nationwide debut Saturday, then return to Los Angeles to compete in RallyCross on Sunday. X Games 17 will be the first X event since 2002 that Pastrana has been out of medal contention.

Pastrana crashed while attempting the corked 720 that had made him a gold-medal favorite in Best Trick. Riders usually get one shot each round at throwing tricks, but Pastrana tried the 720 twice after under-rotating the first time. His second attempt ended in identical fashion and he immediately grabbed his lower leg as medical staff rushed to his side on the landing ramp.

Pastrana's trainer, Todd Jacobs, said Pastrana will have surgery in Maryland on his foot, ankle and hand. He already had ligament damage in the hand from practice.

"No one is more disappointed than Travis," Jacobs said. "He feels like he let everyone down and hopes everyone knows how hard he worked for this."