Get breaking news alerts and special reports. The news and stories that matter, delivered weekday mornings.

A comedian who stars on the popular television show “The League” apologized on Wednesday for lying for years by saying that he worked in the World Trade Center and escaped death on Sept. 11, 2001.

Steve Rannazzisi, who also appears in ads for Buffalo Wild Wings that are a fixture of the NCAA basketball tournament and other sports on TV, called it a “terrible mistake” that was “profoundly disrespectful” to the victims of the terror attack.

Stephen Rannazzisiz attends the premiere of FXX's "The League" final season. Paul Archuleta / FilmMagic via Getty Images file

He apologized after The New York Times presented him with evidence that the story was fiction.

Let our news meet your inbox. The news and stories that matters, delivered weekday mornings. This site is protected by recaptcha

Rannazzisi, 37, has described working for the investment bank Merrill Lynch on the 54th floor of the south tower and escaping to the street after the first plane stuck the north tower.

In fact, The Times reported, Rannazzisi was working in Midtown Manhattan, miles from the World Trade Center, and not for Merrill Lynch. The bank has no record of his employment and did not have an office in either tower, the newspaper reported.

Rannazzisi described the close call as motivation to quit his job, move to Los Angeles and become an entertainer. Rannazzisi wrote on Twitter that he began telling the story after the move, shortly after Sept. 11.

In a 2009 interview with Marc Maron, the host of the podcast “WTF,” Rannazzisi said he was still haunted.

“I still have dreams of, like — you know those falling dreams?” he said.

“The League,” which began airing on FX in 2009 and later moved to FXX, is a comedy show about players in a fantasy football league. Buffalo Wild Wings told the newspaper it was “revaluating our relationship with Steve.”

Rannazzisi apologized in nine consecutive posts on Twitter:

As a young man, I made a mistake that I deeply regret and for which apologies may still not be enough. — Stephen Rannazzisi (@SteveRannazzisi) September 16, 2015

After I moved with my wife to Los Angeles from New York City in 2001 shortly after 9/11, I told people that I was in one of the World Trade — Stephen Rannazzisi (@SteveRannazzisi) September 16, 2015

Center towers on 9/11. It wasn’t true. I was in Manhattan but working in a building in midtown and I was not at the Trade Center on that day — Stephen Rannazzisi (@SteveRannazzisi) September 16, 2015

I don’t know why I said this. This was inexcusable. I am truly, truly sorry. For many years, more than anything, I have wished that, with — Stephen Rannazzisi (@SteveRannazzisi) September 16, 2015

silence, I could somehow erase a story told by an immature young man.It only made me more ashamed. How could I tell my children to be honest — Stephen Rannazzisi (@SteveRannazzisi) September 16, 2015

when I hadn't come clean about this? — Stephen Rannazzisi (@SteveRannazzisi) September 16, 2015

it is to the victims of 9/11 and to the people that love them--and the people that love me--that I ask for forgiveness. — Stephen Rannazzisi (@SteveRannazzisi) September 16, 2015

It was profoundly disrespectful to those who perished and those who lost loved ones. The stupidity and guilt I have felt for many years has — Stephen Rannazzisi (@SteveRannazzisi) September 16, 2015