SAN FRANCISCO — The smartphone patent wars are finally over.

Apple and Samsung settled a seven-year legal fight on Wednesday, ending the most prominent case in a series of lawsuits over smartphone patents over the last decade.

The companies did not disclose the settlement amount. A jury in May ordered Samsung to pay Apple $539 million for infringing on its patents.

Apple first sued Samsung in 2011 for copying the design of the iPhone, kicking off a winding trail of countersuits, trials and appeals, including a stop at the Supreme Court in 2016.

Apple initially sought to block Samsung phones from the market, but the technology at dispute has long been outdated, and the fight has since largely been about money. Apple at one point sought more than $2 billion, while Samsung had argued it owed just $28 million.