Massachusetts Gov. Charlie Baker has reached a peace agreement with another top union.

Boston's Teamsters Local 25, the biggest Teamsters union in New England with more than 11,500 workers on its rolls, on Thursday endorsed Baker for another four-year term.

The union bypassed three Democrats vying for the chance to face off against Baker, a Republican, in November 2018. The Democrats are former Newton Mayor Setti Warren, former Deval Patrick aide Jay Gonzalez and environmental activist Bob Massie.

The Teamsters endorsed Baker's Democratic opponent, Martha Coakley, in the 2014 election, which Baker won by about 40,000 votes.

"In today's economy where corporations are relocating and downsizing to save money, it is more important than ever to elect a candidate who will leverage our state's competitive advantage to protect jobs and attract new businesses," Sean O'Brien, union president, said in a statement endorsing Baker.

"He is a leader who consistently puts politics aside, reaches across the aisle and will work with anyone who shares his goal of putting people first," O'Brien added.

Teamsters Local 25, which has a history of controversy and federal indictments, is the latest union that has established friendly relations with Baker.

Early on in his tenure, Baker worked closely with members of SEIU Local 509 to reform the troubled state Department of Children and Families. The union came to the governor's defense when state Auditor Suzanne Bump, a Democrat, recently issued a report criticizing the agency under Baker.

And earlier this year, the MBTA and the union for bus mechanics ended their squabbling over outsourcing efforts pushed by Baker administration officials. The two camps agreed to a four-year contract after the union mounted an aggressive campaign targeting Baker and the proposed outsourcing.

In his own statement, Baker praised Teamsters Local 25 and said he is "proud" to have their endorsement.

"As an administration, we have been proud to work with labor representatives and employers on bipartisan policies that support working families, investing in the skill building programs, infrastructure and economic development opportunities that have attracted new growth and investment, while creating over 180,000 new jobs," Baker said.

The Massachusetts Republican Party has not always had kind things to say about the Teamsters and has previously taken aim at Attorney General Maura Healey, a Democrat, for backing the union.

"Healey defended the Teamsters even though their leader pled guilty to hardball tactics, including the use of sexist and homophobic slurs," the MassGOP said in a release from Feb. 2017. Party officials were referencing allegations of union officials seeking to intimidate women, including television personality Padma Lakshmi, working on the popular cooking show "Top Chef" when it was filming in Massachusetts in 2014.

In a 2015 release, the MassGOP said, "Our advice to Healey - in 2016, find some new friends who aren't facing federal indictment."

While one union chief pleaded guilty, four others were acquitted of extortion charges in a federal trial.