Google must share data with rivals to open up competition in online search, a judge in Washington ruled on Tuesday.

However, U.S. District Judge Amit Mehta rejected a demand from Donald Trump's Justice Department to break up the internet giant by forcing it to sell off its Chrome browser.

It was the culmination of a landmark antitrust case that imposed sweeping remedies aimed at restoring competition in online search.

The major decision came a year after Judge Mehta found that Google illegally operated monopolies in online search and related advertising, holding exclusive distribution agreements worth billions of dollars a year.

Google CEO Sundar Pichai had claimed the data-sharing measures sought by the Justice Department could allow the tech giant's rivals to reverse-engineer its technology.