Former state Sen. Terry Gipson on Wednesday pulled the plug on his long-shot bid for the Democratic primary for governor after advocate and actress Cynthia Nixon entered the race.

Gipson did not directly endorse Nixon’s campaign, but spoke of working with her in the coming months, saying she has the ability to defeat incumbent Democrat Andrew Cuomo in the September primary.

“After much thoughtful consideration, we’ve decided to end our campaign for the 2018 Democratic gubernatorial primary,” he said in an announcement on his campaign website.

“Another candidate has stepped forward and she clearly has the resources and infrastructure that are needed to secure a place on the ballot and win. I’m proud of what we have achieved, and I am looking forward to working with Ms. Nixon and everyone else who shares my commitment to making government work better for all the people of New York State.”

Gipson is a former state lawmaker who served a two-year term in the Senate from the Poughkeepsie area, losing re-election in 2014 and failing to win back his seat in 2016.

Gipson, in addition to comedian and activist Randy Credico, had been the sole challengers to Cuomo in the primary before Nixon’s headline-grabbing entrance into the race this week.

Gipson failed to gain traction with liberals dissatisfied with Cuomo’s tenure as governor, and many appeared to be waiting on a Nixon candidacy or a bid from former Syracuse Mayor Stephanie Miner.

“From Brooklyn to Buffalo and Rochester to Yonkers, and so many other towns in between, we met amazing people like you,” he said. “We are grateful for what we learned from you on this incredible journey. Together, we put pressure on a system that is designed to resist change and I’m honored to have stood with you. Thank you for your support and encouragement; we could not have made it this far without you.”