“The Muppets” director James Bobin has rekindled his long-running relationship with HBO, signing a first-look deal to develop and produce comedies.

Bobin made the deal through his shingle, the Honourable Co. of Gentlemen Film-Makers, for which his longtime colleague Paul Roemen has been named development veep.

The writer-director’s relationship with HBO dates back to 2003 with the import of “Da Ali G Show,” for which he wrote and directed. Bobin then co-created, wrote and exec produced instant cult favorite “Flight of the Conchords.”

Under the new deal, Bobin has already placed two projects in development: “Marbury vs. Madison,” a comedy set in the world of academic rivalry that he is writing, and “Permanently Temporary,” a female intergenerational comedy from his sister Joanna Bobin.

“They understand and appreciate new comedy,” Bobin said of HBO’s execs. “They’re not scared of taking risks and are adventurous in their outlook.”

Bobin has nabbed or shared 11 Emmy nominations. “The Muppets,” scheduled for a Thanksgiving week release, marks his feature film helming debut.

He’s repped by CAA and attorney Robert Offer.