Democratic presidential hopeful Pete Buttigieg officiated a couple’s wedding on Monday, less than an hour before the birth of their baby.

The mayor of South Bend, Indiana, explained in a Facebook post how he was enjoying some “unstructured time” at around 8:15 a.m. when the young couple, Mary and Gabe, paid him a visit.

Buttigieg was “just the person” they wanted to see, they told him. He noted in his post that he “saw the rare few minutes of free time I had left vanishing” with their appearance.

But, after they explained they were headed to the hospital for a C-section appointment at 9 a.m. and “were hoping they could be married before she delivered,” Buttigieg said there was “only one answer to that question.”

Check out the Facebook post here: