President Donald Trump's company and Washington, D.C., restaurateur José Andrés announced Friday they settled a contentious legal battle that hinged on the president's controversial campaign-trail rhetoric.

The matter settled “amicably,” according to a joint written statement from the Trump Organization and Andrés' company, ThinkFoodGroup. The terms of the settlement are undisclosed, but the Trump Organization originally sued Andrés for $10 million and Andrés countersued for $8 million.

Andrés withdrew his plans to open a restaurant at Trump's new hotel in downtown Washington, D.C., in July 2015, claiming the then-presidential candidate's disparaging comments about Mexicans and immigrants put the potential success of the business in jeopardy. Trump then sued Andrés in August 2015 for breach of contract, and Andrés countersued. The dispute raged on alongside the presidential campaign and after the election. Trump eventually had to sit for a rare deposition as president-elect.