Janeane Garofalo has revealed that she was married for 20 years without knowing anything about it.

Garofalo explained at the New York Comedy Festival that she wed producer Rob Cohen in Las Vegas but didn't realise that the nuptials were official, the New York Post reports.

"Rob and I got married, for real, which we had to have a notary dissolve not 30 minutes before we got here tonight," the actress explained. "We were married for 20 years until this evening."

Advertisement - Continue Reading Below

Garofalo explained that the duo only discovered that they were legally wed because Cohen is now planning to marry his girlfriend, producer Jill Leiderman.

"We got married drunk in Vegas," she said. "We dated for a year, and we got married at a drive-through chapel in a cab. [We thought] you have to go down to the courthouse and sign papers and stuff, so who knew?

"We were married, and apparently now that [Rob] is getting married for real, his lawyer dug up something."