MORRISTOWN, N.J. (CBSNewYork) — A New Jersey couple said “I do” just seconds before the bride gave birth.

A New Jersey couple said “I do” just seconds before the bride gave birth. (Credit: CBS2)

READ MORE: Walker Scores 19, Knicks Romp To End 15-Game Skid Vs 76ers

Michael Gallardo and Marie Margaritondo were already engaged and days away from their wedding, but Margaritondo’s water broke three weeks early.

The couple raced to Morristown Medical Center, but had an emotional dilemma.

READ MORE: Flames Use 4-Goal Outburst In 1st Period To Beat Devils

They didn’t want the new dad to be listed as just “fiancé” on the baby’s birth certificate, so the hospital staff sprang into action.

One nurse raced to be ordained online while others gathered flowers.

Luckily, the church’s chaplain showed up to bless the couple’s hospital room vows.

MORE NEWS: New York Weather: CBS2’s 10/27 Wednesday Morning Forecast

Hospital officials say the whole impromptu ceremony happened 30 seconds before Margaritondo was wheeled into the operating room for a cesarean section.