The insurgent who defeated late Queens state Sen. Jose Peralta in the September Democratic primary was turned away from attending his wake Monday night, sources said.

Peralta, 47, died suddenly on Thanksgiving eve.

Senator-elect Jessica Ramos showed up to pay her respects during the visitation services at the Joseph Farenga & Sons Funeral Home in Astoria.

“You are not welcome! You are not welcome!” mourners said they heard someone at the entrance of the funeral home tell Ramos.

The Post caught up to Ramos, who confirmed she was shooed away.

“I came to pay my respects to the senator’s family and loved ones.” said Ramos, a former aide to Mayor Bill de Blasio.

“It’s unfortunate. I’ve known the senator since I was a teenager. Despite our differences in ideology the past few years, I can respect his love for this community. We just disagreed on how to love it.”

The snub of Ramos shows the hard feelings that still exist over her ousting Peralta, a four-term incumbent senator who previously served four terms in the state Assembly.

A spokesman for the late senator declined comment.