Here are the Mass. governor, Lt. governor, attorney general, and secretary of state primary candidates

Newton residents cast their votes at Grace Episcopal Church on Nov. 8, 2016. —Craig F. Walker/The Boston Globe

As Gov. Charlie Baker works to maintain his post and earn a second, four-year term, he has a primary election opponent, Scott Lively, and others across the aisle — Jay Gonzalez and Bob Massie — are seeking the chance to take Baker on in the November general election.

Primary voters are also facing a choice in the fiery battle for the Democratic nomination for secretary of state between incumbent Bill Galvin and Boston City Councilor Josh Zakim, with Republican Anthony Amore running unopposed.

Two Democrats are seeking the party nomination for lieutenant governor, Quentin Palfrey and Jimmy Tingle. Incumbent Lt. Gov. Karyn Polito is running unopposed on the primary ticket for the Republican nod.

Advertisement

And while Democratic incumbent Attorney General Maura Healey is running unopposed for her party’s nomination, Republicans have a choice between Cape Cod attorney James “Jay” McMahon III and Hingham attorney Dan Shores in the primary election.

Here’s a who’s who of the candidates:

Governor

Republicans

Gov. Charlie Baker 

Gov. Charlie Baker.

Age: 61

Town/City: Swampscott

Background: The incumbent candidate, Baker was elected in 2014. He previously served as the head of Harvard Pilgrim Health Care and served in the administrations of former Govs. Paul Cellucci and William Weld as a human services secretary and budget chief. He received the Republican party endorsement in April.

Scott Lively 

Scott Lively.

Age: 60

Town/City: Springfield

Background: A pastor and attorney, Lively first ran for governor in 2014 as an independent candidate. He is a pro-life and anti-gay activist — and previously ran a dispute resolution center, a law partnership, and a non-profit public interest firm in California, according to his campaign website.

Democrats

Jay Gonzalez

Jay Gonzalez.

Age: 47

Town/City: Needham

Background: The former president and CEO of CeltiCare Health and New Hampshire Healthy Families, Gonzalez served in Gov. Deval Patrick’s administration as the secretary of administration and finance. He has also served as chairman of the board for the Massachusetts Health Connector and as co-chairman of the Massachusetts Life Sciences Center. He received his party’s endorsement in June.

Advertisement

Bob Massie

Bob Massie. —Aram Boghosian / The Boston Globe

Age: 62

Town/City: Somerville

Background: An entrepreneur and environmentalist, Massie most recently led the University of Massachusetts Sustainable Solutions Lab. Massie is also an ordained Episcopal priest and founder of the Massachusetts Energy Efficiency Coalition. He ran for lieutenant governor in 1994 and for U.S. Senate in 2011.

Lt. Governor

Republicans 

Lt. Gov. Karyn Polito

Lt. Gov. Karyn Polito. —Aram Boghosian for The Boston Globe

Age: 51

Town/City: Shrewsbury

Background: Elected alongside Baker in 2014, Polito is the incumbent candidate. She previously served five terms as a state representative from the 11th Worcester District and as a selectman in Shrewsbury, where her family real estate development company is based.

Democrats

Quentin Palfrey

Quentin Palfrey. —John Tlumacki/Globe Staff

Age: 44

Town/City: Weston

Background: Palfrey was a senior adviser for jobs and competitiveness for former President Barack Obama and the deputy general counsel for strategic initiatives at the U.S. Department of Commerce. He was recently the executive director of MIT’s poverty lab, J-PAL North America. Palfrey is the party’s endorsed candidate.

Jimmy Tingle

Jimmy Tingle. —AP Photo/Michael Dwyer

Age: 63

Town/City: Cambridge

Background: An entrepreneur, actor, writer, and comedian, Tingle is the founder and CEO of Humor for Humanity, which uses entertainment to help raise funding and awareness for social causes, charities, and nonprofits. He has also worked as a satirist and regular contributor for MSNBC and as a commentator for “60 Minutes II” on CBS.

Secretary of State

Republicans 

Anthony Amore 

Anthony Amore. —Aram Boghosian for The Boston Globe

Age: 51

Town/City: Swampscott

Background: Amore is the director of security and chief investigator at the Isabella Stewart Gardner Museum. A Swampscott town meeting member and author, he previously served as an officer in the U.S. Immigration Service, a Federal Aviation Administration’s Security Division special agent, and as a U.S. Department of Homeland Security assistant federal security director.

Advertisement

Democrats

Secretary of State Bill Galvin

Secretary of State Bill Galvin. —Keith Bedford / Boston Globe

Age: 67

Town/City: Boston

Background: Galvin was first elected as secretary of state in 1994. As an undergraduate student in 1972, he served as an aide to the Massachusetts Governor’s Council before being elected as the Allston-Brighton district state representative. Galvin was the Democratic nominee for state treasurer in 1990.

Josh Zakim

Josh Zakim. —John Tlumacki / The Boston Globe

Age: 34

Town/City: Boston

Background: Elected in 2013, Zakim is the Boston city councilor for District 8 and currently chairs the council’s Committee on Civil Rights. The son of Boston civil rights leader Leonard Zakim, Josh Zakim, an attorney, previously worked for Greater Boston Legal Services and for the law firm, Mintz Levin. Zakim received the Democratic party endorsement in June.

Attorney General

Republicans 

James “Jay” McMahon III

James McMahon. —Aram Boghosian for The Boston Globe

Town/City: Bourne

Background: An attorney, McMahon has been practicing civil and criminal law for 30 years. In the 1970s, he served as a 2nd Lieutenant in the Massachusetts Army National Guard Military Police and later worked in the private sector, his website said. McMahon received his party’s endorsement in April.

Dan Shores

Dan Shores. —Courtesy

Age: 46

Town/City: Hingham

Background: Shores is the founder of a Boston-based intellectual property law firm. He previously worked as a litigator in Washington, D.C., law firms and ran in 2014 as a Republican for the 9th Congressional District.

Democrats 

Attorney General Maura Healey

Attorney General Maura Healey. —AP Photo/Elise Amendola, File

Age: 47

Town/City: Boston

Background: Healey was first elected attorney general in 2014 and is seeking a second term. A former professional basketball player, she also directed the attorney general’s office’s civil rights division, public protection and advocacy bureau, and business and labor bureau and served as a Middlesex Country prosecutor.