Monty Brinson, ex-husband of Real Housewives of Beverly Hills star Kim Richards, died Sunday after a long battle with lung cancer. He was 58.
A source close to Brinson confirmed to ET that he passed away in a medical facility, surrounded by his family.
While Brinson had been fighting his illness for a long time, the source tells ET that he seemed to be improving just days ago.
WATCH: Kim Richards Is Staying by Ex-Husband Monty Brinson's Side as His Cancer Battle Comes 'to an End'
"It was important to him to be an inspiration to others fighting cancer. He was fighting til the end," the source said. "We are all in a fog. It doesn't seem real yet."
Brinson and Richards were married for three years, from 1985 to 1988, and welcomed their daughter, Brooke, in 1986. After their divorce, the former couple remained close friends.
Richards reportedly spent a lot of time with Brinson in his final weeks, and gathered with his family around his hospital bed at an assisted living facility.
RELATED: Kim Richards and Monty Brinson's Daughter Shares Touching Photo of Father-Daughter Dance
Brinson appeared to be at peace with his terminal illness, according to Instagram posts he shared in the weeks prior to his death.
"I'm surrounded by love," Brinson wrote in a caption to a post shared earlier this month. "I got plenty of love in my heart. I'm here for everybody. This might be my final resting place but I'm content."
On Monday morning, Paris Hilton posted a photo collage in tribute of her uncle. "Heartbroken to hear the sad news of my Uncle @MontyBrinson's passing after his long brave battle with cancer. He was such an incredible man with such a huge heart," she wrote. "He was so insightful & positive about life, even with all he was going through. He always had a smile on his face & lit up the room with his positive energy & fun personality. He will be truly missed. ? My thoughts & prayers are with @BrookeWiederhorn @KimRichards11 & his family. ?? #RIPMontyBrinson."
More on Brinson's final days, with Richards and his family by his bedside, can be seen below.