Hof, the famous pimp who starred in HBO’s “Cathouse,” ran a deep-red platform that supported expansions of gun rights and hard-line immigration policy.

Republican Dennis Hof, the former owner of several legal brothels in Nevada and star of an HBO reality TV series, has won a state Legislature seat — from beyond the grave.

Hof, who died Oct. 16 in his sleep after celebrating his 72nd birthday, secured a landslide victory with 63.12 percent of the vote over his Democratic opponent, Lesia Romanov. Romanov secured just 36.88 percent of the vote against her dead opponent.

America’s most famous pimp, who once starred in HBO’s “Cathouse,” ran a deep-red platform that supported expansions of gun rights and hard-line immigration policy. The Nevada Republican Party will now be responsible for selecting someone to fill Hof’s seat.

Hof’s body was discovered in one of his brothels by his longtime friend and legendary porn star Ron Jeremy.

“I've played a joke on him in the past where I throw off his sheets to wake him up. He was naked and still wasn't moving,” Jeremy told the Daily Mail last month. “I then went back to the bar and asked the girls for help to wake him up.

“I realized something was seriously wrong when we returned. His skin was cold and rigor mortis had already begun in his arm.”

Hof’s campaign manager, Chuck Muth, told Reuters in October that his death would actually probably help him win.

“There are a lot of Republicans who were uncomfortable voting for Dennis because of the nature of his business and they now know that he is not the one who will be serving,” Muth said. “They will feel much more comfortable casting the ballot for him knowing there will be another Republican to replace him.”