In the final years of David Cassidy's life, he was a shell of his former self. The former Partridge Family star, who died Tuesday at the age of 67, was no longer worth millions. Instead, he was bankrupt and struggling through a divorce, drug use, and dementia.

In his heyday, Cassidy was one of the biggest teen idols in the world. He sold over 30 million records during his career. But over the past few years, he hit a series of setbacks. He was arrested three times for DUI - in 2010, 2013, and 2014. A week after the 2013 arrest, news broke that he and his wife, Susan Shifrin-Cassidy, had separated. She then filed for divorce shortly after his January 2014 arrest.

At the time, David Cassidy was already struggling financially. In fact, his rep told ETOnline that Cassidy had tried to get sober before the 2014 arrest, but money concerns led to his relapse.

Watch David Cassidy perform on The Partridge Family.

"David just completed a stint in rehab and was doing very well in sobriety," Jo-Ann Geffen said in 2014. "He was in Los Angeles to attend depositions by Sony Pictures Television, respondents in a lawsuit filed by Cassidy in 2011 over what he claims are monies long due him from Partridge Family merchandise, home video, etc. After attending his and his manager’s depositions, it appears as if the pressure led to a brief relapse."

David Cassidy had accused Sony of withholding his share of the profits from Partridge Family merchandise, re-runs, and spinoffs.  He ultimately won the lawsuit in 2015. But while he was seeking millions of dollars from Sony, he was only awarded $157,964.84.

Cassidy's divorce led to even more financial strain. So in February 2015, he filed for Chapter 11 bankruptcy. "I am going through bankruptcy proceedings at the moment. This is necessary for practical reasons to reorganize my life as I go through divorce and to restructure my finances," he told Los Angeles Times.

In court documents, Cassidy claimed he had up to $10 million in assets but also up to $10 million in debt. According to People, he owed $102,000 to a Florida lawyer, $290,000 to Wells Fargo, $21,000 to American Express, and $17,000 to CitiBank. He also had $292,598  in a personal line of credit.

Watch one of David Cassidy's final concerts below.

As part of the bankruptcy proceedings, he even auctioned off his 7,000-square-foot home. Cassidy paid $1.1 million for the property in 2001, and an oncologist bought it in 2015 for $2 million.

In January, David Cassidy reportedly tried to end his bankruptcy protection by setting up a 60-month payment plan for his creditors. Sources said that Cassidy planned to continue performing in order to resolve his debts.

But in February, Cassidy announced he would no longer perform. Just weeks later, he told People that he was battling dementia. While this health issue likely led to his retirement, his inability to perform may have put his deal with his creditors in jeopardy. Either way, it seems unlikely he was able to repay all of his debts in the past few months.

What are your favorite memories of David Cassidy? Let us know your take in the comments section below!