When it’s time to tape a special, comedians often turn to the capital city, where there’s a bounty of grand old theaters and an audience that always seems hungry for comic relief.

“A lot of the cities are good, but D.C. has a nice mix of enthusiasm and . . . I don’t know if smarts is the right word, or attention span or focus,” says Demetri Martin, who will be taping his first Netflix special, from his “The Persistence of Jokes” tour, at the Lincoln Theatre in March.

“Sometimes a crowd can be kind of hip, but they’re a little aloof, or cynical,” Martin says. “Or they’re excited, but it’s rowdy. D.C. is where there’s a nice balance.”

There must be, because plenty of famous comedy specials have been taped in Washington. Here are a few:

— Lavanya Ramanathan

Bill Maher Live From D.C.

Where it was taped: Warner Theatre

When: 2014

More than 1.6 million tuned in to watch HBO’s resident firebrand riff on the pope, health care and, what else, Republicans — perfect material for this partisan town.

Jeff Dunham: Spark of Insanity

Where it was taped: Warner Theatre

When: 2007

The ventriloquist who somehow managed to revive the medium kept it light for Comedy Central — mostly. It was at this show that he debuted his controversial dead-terrorist dummy, Achmed. Those warm D.C. audiences? They weren’t fazed.

Chris Rock: Never Scared

Where it was taped: DAR Constitution Hall

When: 2004

“Even when he’s raunchy,” wrote former Post TV critic Tom Shales of this HBO special, “it’s thinking man’s raunch.” Rock landed every jab perfectly in this now-legendary show; he also found time to please the crowd with jokes about Washington’s own Howard University.

Dave Chappelle’s Killin’ Them Softly

Where it was taped: Lincoln Theatre

When: 2000

After success in such movies as “Half-Baked,” one of Washington’s own returned home in 2000 to tape his first HBO hour-long standup special. It was a raunchy, elated affair that pressed all the usual Chappelle buttons — race, class — and poked fun at Washington from the outset. “I left D.C. in the ’80s,” Chappelle began. “It was not like this in the ’80s, when crack was going on. Remember when crack was going on? White people be looking at D.C. from Virginia with binoculars.”

Eddie Murphy’s Delirious

Where it was taped: DAR Constitution Hall

When: 1983

If you’ve been on Earth for more than 30 years, you’ve seen snippets of “Delirious,” the HBO special that preceded his infamous “Raw.” Murphy, already a star in year three of his four-year run on “Saturday Night Live,” had an avid audience that night. For the occasion, he rolled into the venue in flashy red leather (pleather?) separates that bared most of his chest.