Apple and Samsung have finally settled a seven-year battle over smartphones that went all the way to the U.S. Supreme Court.

The bitter rivals notified U.S. District Court Judge Lucy Koh of the truce in a notice filed Wednesday. Terms of the settlement weren’t disclosed.

The resolution comes a month after a jury concluded Samsung owed Apple $539 million for copying some of the iPhone’s innovations in some of Samsung’s competing products. The verdict was reached after the U.S. Supreme Court issued a 2016 ruling that determined a portion of earlier damages awarded to Apple needed to be re-examined.

Apple had been seeking more than $1 billion in the latest trial while Samsung argued it should only pay $28 million.

The dispute began in 2011 when Apple accused Samsung of copying the iPhone’s design and infringing on patents for features like double-tapping to zoom. The settlement comes after Apple won a $539 million jury award in May.

Litigating the case cost the two companies hundreds of millions of dollars and resulted in several rulings and appeals. In 2012, a jury ruled Samsung must pay Apple more than $1 billion for copying various hardware and software features of the iPhone and iPad. A federal judge later reduced that penalty by $450 million.

Their fight eventually landed in the Supreme Court, which in 2016 reversed an appeals court ruling that Samsung must pay $399 million for patent infringement. Justices sent the case back to the lower court to determine just how much Apple should receive.

A representative for Apple declined to comment beyond referring CNNMoney to a statement the company released last month following the jury award.

“This case has always been about more than money,” the company said at the time. “Apple ignited the smartphone revolution with iPhone and it is a fact that Samsung blatantly copied our design. It is important that we continue to protect the hard work and innovation of so many people at Apple.”

Apple added: “We’re grateful to the jury for their service and pleased they agree that Samsung should pay for copying our products.”

Samsung did not immediately respond to a request for comment.