These judges have a nose for justice.

An Italian court ruled that cooking stinky food — like rich pasta sauces and fish — too close to neighbors is a crime that constitutes “olfactory molestation,” according to a report.

An unnamed couple was found guilty of “antisocial behavior” after they refused to stop cooking fritti misti, an Italian seafood dish, in their small apartment in Monfalcone, according to the UK Telegraph.

Grossed-out neighbors had long demanded that they put a lid on the stench, which wafted into their homes.

“The whole of my apartment became impregnated with the smell of the pasta sauce and the fried fish. It felt like their kitchen was in my flat,” one neighbor in the building griped in court.

The case made it all the way to the country’s supreme court in Rome, where judges ruled the smell was “beyond the limits of tolerability,” according to the paper.

The couple, who was not named in the report, was ordered to pay of $2,150 fine by the Court of Cassation in Rome.