Wynn Resorts CEO Matthew Maddox, left, applauds while seated near the casino floor with Everett, Mass., Mayor Carlo DeMaria, right, at the Encore Boston Harbor casino in Everett, Massachusetts, in this June 21, 2019, file photo. Credit: Charles Krupa / AP

MASPEE, Massachusetts — A couple gathered with family for a Cape Cod wedding found themselves without an officiant minutes before being wed, until a Massachusetts mayor wrangled special permission to perform the ceremony.

Carlo DeMaria, the mayor of Everett, Massachusetts, was on vacation near the venue in West Yarmouth on Saturday, when the mother of the bride asked if he could help.

The minister who was supposed to perform the ceremony had canceled at the last minute because of an emergency.

DeMaria said he called Massachusetts Gov. Charlie Baker and Lt. Gov. Karyn Polito to request special authorization to wed the couple, who recently moved to Cape Cod from Pittsburgh.

Matt and Naomi Kalliath are both are physicians and will start positions at hospitals in Massachusetts and Rhode Island.

“It really means a lot that they took time out of their Saturday afternoons to make this official for us,” Matt Kalliath told the Cape Cod Times, speaking of the elected officials.

DeMaria officiated the couple’s union at sunset wearing a polo shirt and shorts and reading their vows off a cellphone. The outdoor ceremony included the couple’s dog.

“They’re a wonderful couple, and the vows were truly beautiful,” DeMaria told the newspaper. “It was a special day for them, and I was just happy being a part of it. I just want to wish them a lifetime of happiness.”

On Tuesday, the newlyweds met DeMaria again for lunch to thank him for rescuing their special day.