The Metropolitan Opera and ousted legendary conductor James Levine settled legal claims against one another on Tuesday — ending a legal battle that kicked off more than a year ago when the Met fired Levine amid sexual misconduct allegations.

The details of the settlement were not made public in the Manhattan Supreme Court filing, and it’s not clear if either party paid another to close the lawsuits.

The Met suspended Levine in December 2017 after several male students accused the legendary conductor of sexual abuse in allegations made public by The Post and The New York Times.

The sexual misconduct allegations against Levine date back to the 1960s, but the famed opera house said his alleged abuse continued until at least the 1980s.

Three men came forward in 2017 with sexual abuse allegations against Levine, claiming the misconduct happened decades ago while they were all teenagers.

One of them, Ashok Pai, of Illinois, was 16 when Levine allegedly abused him in the summer of 1986 — and he claimed he became suicidal as a result.

The two others — identified by The New York Times as Chris Brown and James Lestock — both met Levine while playing in their school orchestra. They were each 17 when the abuse allegedly started.

Levine filed suit against the opera house in March 2018, claiming the accusations were baseless and he was unfairly fired. He sought $5.8 million in damages.

The Met responded by filing a counterclaim for a similar amount of money, claiming they found credible evidence that Levine sexually abused seven people over a 25-year period.

The Met and a lawyer for Levine did not immediately respond to a request for comment.