Kirsten Hughes was re-elected as chairwoman of the Massachusetts Republican Party Wednesday, winning a hard-fought victory at an occasionally raucous party meeting in Newton that raised questions about GOP unity heading into Governor Charlie Baker’s upcoming re-election campaign.

Hughes, who’s had the job since 2013 and enjoys Baker’s backing, faced a spirited challenge from GOP activist Steve Aylward — best known for his role fighting, and defeating, automatic hikes to the state’s gas tax in a 2014 ballot initiative.

Aylward argued that under Hughes’s watch, the Mass. GOP has failed to significantly erode Democratic dominance in the state legislature and marginalized dissenting conservative voices in its own ranks.

Support for GBH is provided by:

“In order for our party to prosper, we must craft a strong, conservative, populist message,” Aylward said in a speech prior to the vote, citing President Donald Trump as an example.

Trump didn’t win election because he was likable, Aylward added, but because he has clear convictions. Aylward then proceeded to list his own convictions, including support for gun rights and opposition to Common Core, Sanctuary Cities, and the transgender accommodations bill Baker recently signed into law.

“Enough excuses and enough spin,” Aylward said. “Our party needs a new direction, a new confidence, and a new voice. Because I do not accept the fact that this is Massachusetts and we should be content to be a minority party.”

Aylward’s supporters were easy to spot. The area of the room reserved for spectators was packed with party activists who carried bright red-and-white signs that read “Another Activist for AYLWARD” or wore stickers bearing the same message.

Several paired that memorabilia with swag that showcased their support for President Donald Trump. At the beginning and end of Aylward’s speech, they stood and chanted, “Steve! Steve! Steve!”

Hughes spoke after Aylward, announcing at the outset of her comments that the Mass. GOP is “strong and on the rise.” After approvingly citing Trump’s inauguration speech, Hughes lauded Baker’s State of the State address and achievements as governor — saying, among other things, that he’s “held the line against Beacon Hill Democrats” who want to hike taxes.

Support for GBH is provided by:

“It’s time to get to work rebuilding America and making this nation great again,” Hughes said. “And that’s exactly what we’re doing in Massachusetts.”

Hughes also told the crowd that under her watch, the Mass. GOP worked hard for Trump during the presidential election.

While her speech drew applause at several points, including an assertion that U.S. Sen. Elizabeth Warren must be defeated for the “good of the nation,” it was peppered with shouts of dissent from pro-Aylward audience members.

After her victory, Hughes said any tensions surfaced by the chair fight are manageable.

“We all agree that the state needs to move forward, that we need to keep jobs, that we need to keep unemployment low, that we need to bring businesses that want to stay and grow their business in Massachusetts, and we want families to stay and grow their kids here,” Hughes said. “Those are the core things that Massachusetts Republicans believe.”

Aylward struck a conciliatory note too, saying he’ll be “happy to work” with Hughes moving forward.