Secretary of the Commonwealth Bill Galvin won’t have to pack up his office any time soon after handily defeating challenger Josh Zakim with about 67 percent of the vote.

Zakim, who launched his campaign for secretary last year and won the party's endorsement at the June convention, took home about one-third of the vote after a feisty fight for the constitutional office charged with overseeing the state’s elections.

Throughout the campaign, Zakim tried to brand himself as the more progressive candidate with a focus on access to voting. He pointed to the state’s low voter turnout as a sign of his opponent’s shortcomings.

Galvin, who has held the job since 1995, stuck to campaigning on his record and lauded his efforts to overhaul and protect the state’s voting systems in the digital age. He oversaw the implementation of the “Motor Voter Law,” which has become the most popular way for people to register to vote because of its convenience. The law allows people as young as 16 to register to vote or update their registration on forms at the Registry of Motor Vehicles.

Galvin arrived at The Stockyard in Brighton shortly after 10 p.m. to address his supporters.

“First and foremost, I want to thank the voters of Massachusetts,” Galvin said to a small crowd. “Throughout the day today, I had the opportunity — when I wasn’t working on the official part of the day — to visit voters at polling places throughout the state. I was gratified first of all with the tremendous turnout.”

Zakim has served as a Boston city councilor representing Back Bay, Beacon Hill, Fenway, Kenmore Square, Mission Hill, Audubon Circle, and the West End since being elected in 2013. He will keep his seat on the Boston City Council.

In Massachusetts, the secretary of the Commonwealth is elected every four years to oversee elections, the public records division and historical commission, among others. The secretary of the Commonwealth’s office also provides public access to government information — like employee’s salaries.

Galvin will now face Republican candidate Anthony Amore in the Nov. 6 general election.

Reporter Maggie Penman contributed to this article.