A Manhattan judge finally ended long-suffering wife Silda Wall’s 26-year marriage to toe-sucking ex-gov Eliot Spitzer when she approved their divorce settlement on Wednesday.

The estranged couple never had to appear in court for the split, a source told The Post.

Matrimonial Justice Laura Drager handed down the divorce judgment just three weeks after the duo filed the “Anonymous vs. Anonymous” case in Manhattan Supreme Court last month.

A family spokesman told The Post in January that Eliot and Silda had resolved their differences before filing for divorce.

Eliot was listed as the plaintiff in the short-lived case against his spouse, which came on the heels of a scathing Post exclusive that revealed the ousted governor was canoodling with former Bill de Blasio spokesman Lis Smith.

When the news broke, Eliot, 54, and his attorney-wife, 56, made their split official in a joint statement. They have three daughters who are all adults, so custody was not an issue.

A witness who caught Sptizer getting cozy with Smith in the hot tub of a Jamaican resort over New Years said the luv guv “put her feet in his mouth. He licked her toes and was playing with her feet.”

In 2008 Spitzer resigned for less legal behavior — patronizing the Emperor’s Club under the pseudonym “Client 9.”