Mr. McAfee, who has not been associated with the company that bears his name for more than two decades, was fighting extradition to the United States after his arrest in Spain.

John David McAfee, the founder of the antivirus software maker bearing his name, died in a prison in Spain on Wednesday, after a Spanish court said he could be extradited to the United States on tax-evasion charges.

#styln-signup .styln-signup-wrapper {
max-width: calc(100% – 40px);
width: 600px;
margin: 20px auto;
padding-bottom: 20px;
border-bottom: 1px solid #e2e2e2;

His death was confirmed by his lawyers. He was 75.

After selling his pioneering virus-fighting firm in 1994 and losing most of his fortune during the 2008 financial crisis, Mr. McAfee led a peripatetic life that included a turn to paranoia and a string of arrests around the globe. That all culminated in his detention in Spain in 2020 after prosecutors in the United States accused him of not filing tax returns for several years.

The indictment filed by the Justice Department said Mr. McAfee had earned millions from “promoting cryptocurrencies, consulting work, speaking engagements and selling the rights to his life story for a documentary,” and had tried to avoid taxes by using cryptocurrency and channeling the money through bank accounts. He could have faced prison time if convicted.

Mr. McAfee said he had been arrested despite paying “millions of dollars in taxes” and resisted extradition, claiming he faced political persecution for denouncing corruption in the Internal Revenue Service and opposing the fiat money system, in which central banks like the Federal Reserve control the money supply. But on Wednesday, the Spanish court released its decision to allow the Justice Department’s request to extradite him, saying there was “no supporting evidence that such a thing could be happening.”

“The social, economic or any other relevance the defense claims the appellant possesses does not grant him any immunity,” the ruling stated.

“When I heard of John’s impending extradition, my team was fully prepared to fight for his innocence before the United States courts,” said Andrew B. Gordon, one of Mr. McAfee’s lawyers. “We knew he would appreciate the opportunity to share his story and put the false charges against him to rest. Only hours later, we were shocked to learn of his untimely death.”

The justice department for the Catalan region of Spain said that, pending an investigation, it was treating his death as a probable suicide. It said in a statement that Mr. McAfee had been found in his cell and died despite efforts by security guards and prison health care officials to revive him.

Mr. McAfee in 2009. After the financial crisis of 2008, he was forced to auction off several properties, including his house in Rodeo, N.M.
Chris Richards for The New York Times

Before his troubles with U.S. federal law enforcement, Mr. McAfee was at the center of a media frenzy surrounding the death of a neighbor in Belize. He fled his home there in 2012 after the police called him a “person of interest.” The government of Belize had also raided his house more than once, looking for evidence that he was assembling a militia and dealing in narcotics. Within a few weeks, Mr. McAfee was arrested on charges of illegally entering Guatemala, where he had sought political asylum.

By 2015, he was back in the United States and, after an arrest in Tennessee on gun and drunken-driving charges, ran for president as a Libertarian, with his campaign video declaring, “Here’s to the crazy ones.”

.css-1xzcza9{list-style-type:disc;padding-inline-start:1em;}.css-3btd0c{font-family:nyt-franklin,helvetica,arial,sans-serif;font-size:1rem;line-height:1.375rem;color:#333;margin-bottom:0.78125rem;}@media (min-width:740px){.css-3btd0c{font-size:1.0625rem;line-height:1.5rem;margin-bottom:0.9375rem;}}.css-3btd0c strong{font-weight:600;}.css-3btd0c em{font-style:italic;}.css-w739ur{margin:0 auto 5px;font-family:nyt-franklin,helvetica,arial,sans-serif;font-weight:700;font-size:1.125rem;line-height:1.3125rem;color:#121212;}#NYT_BELOW_MAIN_CONTENT_REGION .css-w739ur{font-family:nyt-cheltenham,georgia,’times new roman’,times,serif;font-weight:700;font-size:1.375rem;line-height:1.625rem;}@media (min-width:740px){#NYT_BELOW_MAIN_CONTENT_REGION .css-w739ur{font-size:1.6875rem;line-height:1.875rem;}}@media (min-width:740px){.css-w739ur{font-size:1.25rem;line-height:1.4375rem;}}.css-1dg6kl4{margin-top:5px;margin-bottom:15px;}#masthead-bar-one{display:none;}#masthead-bar-one{display:none;}.css-12vbvwq{background-color:white;border:1px solid #e2e2e2;width:calc(100% – 40px);max-width:600px;margin:1.5rem auto 1.9rem;padding:15px;box-sizing:border-box;}@media (min-width:740px){.css-12vbvwq{padding:20px;width:100%;}}.css-12vbvwq:focus{outline:1px solid #e2e2e2;}#NYT_BELOW_MAIN_CONTENT_REGION .css-12vbvwq{border:none;padding:10px 0 0;border-top:2px solid #121212;}.css-12vbvwq[data-truncated] .css-rdoyk0{-webkit-transform:rotate(0deg);-ms-transform:rotate(0deg);transform:rotate(0deg);}.css-12vbvwq[data-truncated] .css-eb027h{max-height:300px;overflow:hidden;-webkit-transition:none;transition:none;}.css-12vbvwq[data-truncated] .css-5gimkt:after{content:’See more’;}.css-12vbvwq[data-truncated] .css-6mllg9{opacity:1;}.css-1rh1sk1{margin:0 auto;overflow:hidden;}.css-1rh1sk1 strong{font-weight:700;}.css-1rh1sk1 em{font-style:italic;}.css-1rh1sk1 a{color:#326891;-webkit-text-decoration:underline;text-decoration:underline;text-underline-offset:1px;-webkit-text-decoration-thickness:1px;text-decoration-thickness:1px;-webkit-text-decoration-color:#ccd9e3;text-decoration-color:#ccd9e3;}.css-1rh1sk1 a:visited{color:#333;-webkit-text-decoration-color:#ccc;text-decoration-color:#ccc;}.css-1rh1sk1 a:hover{-webkit-text-decoration:none;text-decoration:none;}

Last October, the Securities and Exchange Commission accused Mr. McAfee of promoting initial coin offerings — deals for cryptocurrencies — on Twitter without disclosing that he had been paid to do so. The S.E.C. said Mr. McAfee had pretended to be independent and impartial but had received more than $23 million for stirring up interest in the offerings.

Mr. McAfee grew up in Roanoke, Va., the son of a road surveyor and a bank teller in an unhappy marriage. He said in press reports that his father was a severe alcoholic who beat him and his mother, and who fatally shot himself when Mr. McAfee was 15.

“Every day I wake up with him,” Mr. McAfee told a reporter for Wired magazine in 2012. “Every relationship I have, he’s by my side; every mistrust, he is the negotiator of that mistrust.”

McAfee Associates, the software company he founded, was once a household name in computer security. He started it in 1987 in his small house in Santa Clara, Calif., in response to the news of a Pakistani computer virus called Brain, thought to be the first to attack personal computers. Mr. McAfee said that, at the time, it reminded him of the way his father would suddenly attack him.

His plan was to create an antivirus program and give it away on computer bulletin boards, with the hope that users would install it on their computers at work. They did, and the companies paid licensing fees, giving Mr. McAfee revenues of about $5 million a year by 1990.

McAfee Associates went public in 1992, making its founder’s stock worth $80 million, but he resigned in 1994. The company’s rise to prominence continued without him. Intel, the computer chip maker, bought the company in 2010 for $7.7 billion, then sold its majority stake to an investment firm six years later.

By that time, Mr. McAfee’s fortune had fallen to $4 million from $100 million, forcing him to auction off major assets and fly coach, and he had moved to Central America, seeking a simpler and cheaper life.

Before and after McAfee Associates was bought by Intel, the company tried to distance itself from Mr. McAfee. Before it sold the company, Intel tried to rebrand it as Intel Security. But it never shook its attachment to its founder and the brand he helped create, and the name McAfee was restored when it was sold.

In 2016, when Mr. McAfee tried to use the name with a new security company, Intel filed a lawsuit seeking to prevent him from doing so. Intel and Mr. McAfee settled the lawsuit, with Mr. McAfee agreeing not to use his name in the field of cybersecurity.

Cade Metz and Raphael Minder contributed reporting.