Dean McDermott was released from the hospital Tuesday afternoon, his rep confirms to UsMagazine.com.
McDermott, 43, was hospitalized with a punctured and collapsed lung after he crashed his dirt bike last Tuesday.
PHOTOS: Tori and Dean renew their vows
On the Fourth of July, his wife, Tori Spelling, 37, posted on Twitter, "I said to @deanracer "Babe do u want anything?" He said 'Oreo McFlurry! So his spirits are up despite all the pain."
PHOTOS: Dean McDermott and other stars' adorable daddy moments
Spelling, who recently renewed her vows with McDermott, said it has been tough not having him home with her and their two children, Liam, 3, and Stella, 2.
PHOTOS: Hollywood's most romantic couples
"Rented New Moon for 2nite. Lonely w/o @deanracer," she wrote Friday. "Just got home from hospital. Taco Bell and Team Edward!"