Amazon has agreed to a settlement with European Union regulators that will force the company to make significant changes to its business practices but also allows the e-commerce giant to avoid a drawn-out legal fight and billions of dollars in potential fines, according to three people with knowledge of the deal.

The settlement, expected to be announced Tuesday, will end two antitrust investigations in Europe. The deal will require Amazon to give makers of rival products equal access to valuable real estate on its website, said the people, who would speak only anonymously before the official announcement. The company will also be barred from using nonpublic information it gathers about independent merchants to inform Amazon’s own product offerings, among other changes.

The deal represents a sign of progress for European regulators, even though Amazon faces no financial penalty. Regulators have spent years trying, with mixed success, to force the world’s largest technology companies to change business practices that they believe thwart competition, undermine data privacy safeguards and allow illicit online content.

The Amazon deal, first reported by the Financial Times, tracks closely with a draft settlement announced by the European Commission in July, the people said. It will last five years and applies only to Amazon’s operations in the EU, though the company could choose to adopt some of the changes outside the region. The deal helps Amazon avoid a fine of up to 10% of its global revenue, which was about $470 billion last year.

As part of the agreement, Amazon pledged to give merchants equal access to valuable space known as the “Buy Box” — the two prominent buttons on a product’s listing that prompt customers to “Buy Now” or “Add to Cart.” Amazon has also vowed to create a second offer box if there’s sufficient difference in price or time of delivery.

Placement inside the Buy Box is a major driver of sales for companies that sell on Amazon, but if Amazon sees a product for sale at a lower price on another site, it will remove those two buttons and replace them with less enticing language and designs, which can sharply curtail sales.

Amazon, led since last year by Andy Jassy, who replaced Jeff Bezos as CEO, has previously argued that its Buy Box policies helped consumers by keeping prices low and delivery times short. But its design has been a source of antitrust scrutiny.

In September, the California attorney general sued Amazon, arguing that sellers often raise their prices on other websites to match the price on Amazon and keep their placement in the Buy Box, to the detriment of consumers.

In the EU settlement, Amazon also agreed to stop using nonpublic data about merchants that it competes with. Independent merchants who rely on Amazon to reach customers have long complained that the company uses information about sales terms, revenue and inventory to make decisions about what products to create, sell and promote.