The call came around 3:30 p.m. on a sultry Minnesota day. The hospice social worker, Cheryl, explained the situation in a rush.

She had tried 15 judges, and all were either in court or otherwise unavailable. By chance, she had reached me directly.

I had just finished a tough trial and was in my chambers surrounded by judicial detritus: legal briefs, scores of exhibits.

This was the sanctuary where I went to nurse my wounds after a day of inhaling other people's problems: name-calling; failed relationships; poor judgments made by people sometimes young, sometimes old, usually emotional.

To be honest, I almost didn't answer the phone.

The protracted, petty legal combat I had just suffered through was a case that should have been settled but for bad blood in a family relationship. I'd survived, presiding over a trial that was neither great nor good. It was done, but not my proudest moment as a judge.

I felt like putting one of those bumper stickers on my door that read: "Your poor planning is not my emergency."

All I wanted was a drink.

That, however, would be considered poor decorum for a judge, and judges lose their jobs over poor decorum. So I tried to shake off my grumpiness and be civil to Cheryl. I asked in my calmest Oliver Wendell Holmes voice what I could do for her.

She said she needed a judge to perform an emergency wedding.

Believe it or not, this was not my first such request of the week. I often receive these requests, usually involving the need to get a waiver to avoid the required five-day waiting period. Sometimes I am sympathetic, as when the request is spurred by a sudden deployment to Iraq or Afghanistan.

But generally I don't like to reward those who leave matters like the arrangement of a wedding until the day they want it to happen. I was tired of the seemingly endless series of calls from people with ridiculous, impulsive requests.

I leaned back in my desk chair and, as I do when I'm tired, pulled on my right earlobe and scratched my head, the right forefront where my hairline is beginning to retreat.

I half-listened as I wondered what to do about the posttrial motions for the case I'd just heard, the detective waiting outside my chambers for me to sign a search warrant and the sheaf of emergency orders on my desk that typically accumulate during a lengthy trial.

But Cheryl begged; she practically yanked my bleeding heart right out of my chest. She explained she was a hospice social worker for Thomas, 77, who had been discharged from the medical center hospice unit so he could die at home.

He was conscious and lucid but likely to die at any moment. He could no longer talk and communicated entirely though hand squeezes.

His dying wish was to marry Donna, his life partner of 38 years. She was 57. They had talked about marriage over the years but had never gotten around to a wedding.

They had even gone so far as to fill out the application from the downtown wedding license center.

Was this yet another case of people irresponsibly leaving things until the last minute? Probably. But I realized in the moment it didn't matter. People do stupid, human things. I could make this one right.

By law, the couple was required to attest in person, under oath, in front of the wedding license official, that all of the statements on the application were true: that they wanted to marry each other, and that as required by Minnesota law, "we are no nearer of kin than the first cousins once removed; that ... there is no legal impediment to this marriage, that neither of us has a spouse living, and that one of the applicants is a man and the other is a woman."

The wedding license bureau had told Cheryl that no one there had the power to issue an emergency license by phone, but maybe she could try to reach a judge. There were formalities -- the five-day waiting period and an appearance in person at the wedding license bureau. There was no official procedure for an emergency deathbed-wedding license.

When someone goes to the trouble of trying to contact 16 judges, there's usually an important issue at stake. But I was a sorry excuse for a judge that day, and I was in no shape to do anyone a good deed.

Even if I could figure out a way to do something that no one else wanted to do, something that violated every established process and had to represent some kind of poor planning by the couple, the reward (I thought in the back of my mind) was that I would be sued by some disgruntled heir who had been disinherited by the unorthodox wedding, or criticized by the license bureau for not doing it exactly as specified, or publicly flogged by the court of appeals if my actions turned out to be illegal.

Also, my courthouse in downtown Minneapolis was at least 20 miles from their home; the evening rush was already under way. Thomas was near death. The only option seemed to be a telephone wedding, yet that would violate the rule requiring the wedding to occur in the presence of the judge.

My brain said no. No! My court clerk stood outside my door at the head of a growing line that included the detective with the search warrant and lawyers from the last case, still unwilling to go home. My clerk, whose job it is to protect me from others and myself, mouthed, "Go home."

But as if by rote I said: "Yes. Yes, we'll see if we can make it work."

You see, my father had died of liver cancer a few years earlier. I'd visited him in Chicago while he was sick, putting a mat under his hospice bed and sleeping next to him, holding his hand so I could be there in his dying moments. Everyone thought he had hours to live.

Then he rebounded, and I flew home to Minneapolis and returned to work. To my eternal regret, I was not there a week later when he died. It was because of my poor planning that he died alone.

Thinking of my father, I made a few inquiries, verifying that Thomas and Donna had completed a wedding license certificate, that the family supported the wedding and it was not a ruse to divert an inheritance, and that the humanitarian nature of the wedding was real.

It would all have to be done by phone, and it would have to be fast. The moment that Donna heard the news, Cheryl later told me, she rushed to put on a wedding dress that she had been saving for years.

Witnessed on their end by a hospice chaplain and the bride's and the bridegroom's families, who encircled Thomas's bed, the couple were placed under oath.

Acting in the place of the wedding license registrar, I swore them to the truth of all of the statements on their license application. Donna swore to the truth and signed the application. Thomas swore to the truth by squeezing the hospice worker's finger "yes" and signed an "X."

I performed this ceremony holding the phone, sitting at my mess of a desk, as the detective waited impatiently for his search warrant just outside my door.

"Do you, Thomas, take Donna to be your lawful wedded wife?" The chaplain said, "He squeezed her finger 'yes.'"

"Do you, Donna, take Thomas to be your lawful wedded husband?"

"Yes."

"Do you promise to love and care for each other, in good times and bad, in sickness and health, for better or worse, for as long as you both shall live?"

"Yes."

I pronounced Thomas and Donna husband and wife. Invoking the power vested in me by the laws of Minnesota, I told them that after 38 years together they could now kiss each other, for the first time, as a married couple.

I was told they did.

Later that evening, Thomas died.

Shortly thereafter, I issued my court order, complete with procedural history and legal analysis, directing the licensing bureau to accept and file the wedding license and issue a certificate of marriage.

I have written thousands of orders as a judge. This was my best.

* * *

Lloyd Zimmerman is a Hennepin County district judge. He wrote this article for the New York Times.