A legal battle has erupted between the organizers of the New York City St. Patrick’s Day Parade over its lucrative television rights.

John Dunleavy, the ex-chairman of the organization that runs the march, is accusing two other parade officials in a new lawsuit of launching a coup to usurp him and enrich one of their employers.

Dunleavy claims he was “illegally” ousted on June 30 by parade officials John Lahey and Francis X. Comerford, the latter of whom is an executive for NBC-owned TV stations.

Lahey and Comerford “conspired to remove” Dunleavy from the top post and replace him with Lahey learning Dunleavy intended to enter into a contract with WPIX/Channel 11 and not NBC to broadcast the 2016 St. Patrick’s Day Parade, according to the lawsuit filed in Bronx Supreme Civil Court on Monday.