Snubbing the Democratic nominee, The Boston Globe has endorsed Republican candidate Charlie Baker for governor in Massachusetts.

The endorsement marks the first time in many years that the newspaper’s editorial board has gone with a Republican for governor. In the last two elections, the Globe backed Deval Patrick, the sitting Democratic governor.

But this time, the editorial board went with Baker, a former businessman, over his Democratic opponent, state Attorney General Martha Coakley.

The Globe’s endorsement of Baker highlighted his support for gay marriage and abortion rights, but notes he has made a few political missteps, which include referring to a female Fox25 reporter as “sweetheart” during a Q&A.

The piece said that Baker would provide “creative tension” to an “overwhelmingly Democratic Legislature.”

Coakley, who lost to Scott Brown in the 2010 race to replace the late Sen. Ted Kennedy in the Senate, is in a tough race against Baker for governor.

The Globe, though, praised Coakley and called both candidates “experienced trustworthy public servants who can ably govern.”

On Friday, the Globe reported that its own polling showed Baker opening up a 9-point lead over Coakley.