Rep. Carolyn Maloney’s green critique of President Trump doesn’t hold water, court papers reveal.

The Manhattan Democrat slammed Trump last year for “weakening Clean Water Act protections” — but she’s made millions from companies that were sued for polluting wetlands in violation of the same law.

Maloney reported earning between $1.72 million and $8.1 million from fees and other stakes in Sea Bay Development Corp., Beechtree Park Inc. and Green Sea Farms LLC from 2002 and 2016, disclosures show.

Those family-run companies were sued in November 2006 for violating the Clean Water Act by dumping muck and dirt from their Green Sea Farm into wetlands that flow into a tidal estuary on the Chesapeake Bay without a permit, court papers show.

Maloney’s family, the Boshers, claimed water was backing up onto farm fields and disputed the size of wetlands on the site, court papers show. In November 2007, the EPA announced agreements to resolve the wetlands violations.

In February 2017, Trump ordered the EPA to review a rule meant to cut down pollution by expanding the definitions for wetlands and small waterways under the Clean Water Act.

“She had no knowledge or control of the companies’ actions whatsoever,” Maloney rep Jennifer Bell said, adding the congresswoman is a “fierce fighter for our environment.”