His revenge was worth its weight in gold.

A Colorado man was so angry at his ex-wife for divorcing him that he had the couple’s life savings of $500,000 converted to gold — then tossed it in a dumpster so she couldn’t have any of it, the Colorado Springs Gazette reports.

In June, Earl Ray Jones, 52, of Divide, Colorado, was ordered by a judge to pay $3,000 a month to the woman he’d been married to for 25 years, so he pillaged the couple’s retirement account and had it converted into 22 pounds worth of gold and silver bars, the paper reports.

Jones claims he then tossed the modern-day treasure into a dumpster behind a motel, where he had been living temporarily, later telling the judge he had no money to give his ex-wife, according to the paper.

His wife’s lawyer called it one of the most bizarre things he’d ever seen.

“We say that when people are divorcing, they enter a state of temporary insanity,” quipped John-Paul Lyle. “But on a scale of 1 to 10, this is my 10.”

There are no witnesses to confirm the gold dumping and no lucky garbage men discovered the treasure, according to the Gazette.

“I didn’t have any drivers walking off the job with a smile in May,” garbage truck manager Rick DiPaiva said.

Jones said he first tried to withdraw the money from his bank in cash, but the request was denied.

“If that would have been an option, I would have been walking around giving people $100 bills,” he said in a sworn statement.

Jones is now in jail, doing time for assault for a separate case.