Jack Black is to star in the comedy “Micronations,” reuniting with director Jared Hess, with whom Black worked on Paramount Pictures’ “Nacho Libre.”

“Micronations” will be penned by “New Girl” writers Robert Snow and Christian Magalhaes. Brandt Andersen, Dave Hunter and Hess are producing the movie under their newly launched banner Buffalo Film Company. Black’s company, Electric Dynamite, and Damon Ross (“Nacho Libre”) will also produce.

In “Micronations,” a lovable oddball finds a place to belong among the bizarre and ridiculous world of “do-it-yourself countries,” inhabited by a motley crew of eccentrics and visionaries who have declared their own backyards sovereign nations…or “micronations.” He soon finds himself recruited as head of defense for the tiny nation of Valoria (population: 12), and is thrust into an overblown battle with the neighboring Wayne County, Nevada.

Hess’ credits include indie hit “Napoleon Dynamite.” His next film “Masterminds,” starring Kristen Wiig and Zack Galifianakis, will be released by Relativity on Aug. 7. He is also attached to direct Walt Disney Picture’s “Overnight on 42nd Street.” Buffalo’s Andersen said: “Jared is able to create unique worlds out of places we might otherwise overlook.”

“Once I learned that there were people within the United States who have created their very own countries, I knew I had to make a movie about them,” Hess said.

“Micronations” will be the second collaborative project for Andersen, Hunter and Hess under the Buffalo Film Company. The partnership’s first film, “Don Verdean,” was written and directed by Hess. The film world premiered at the Sundance Film Festival on Jan. 28 and was acquired by Lionsgate.

“After knowing and working with each other for several years, a production partnership made perfect sense. Buffalo Film Company combines financing, production and creative direction, giving us a multifaceted approach to filmmaking,” said Buffalo’s Andersen.

Black is represented by WME and Hess by UTA.