SAN JOSE (CBS SF/AP) — Silicon Valley trailblazer Yahoo and AOL will be merged under a $5 billion deal reached between Apollo Global Management and Verizon.

The purchase comes more than two years after Apollo acquired Cox Broadcasting’s television and radio stations.

READ MORE: East Bay Homebuyers Pay $200-400K Over Asking As Home Prices Soar To Record Levels

Verizon said Monday that it will keep a 10% stake in the new company, which will be called Yahoo.

Yahoo at the end of the last century was the face of the internet, preceding the behemoth tech platforms to follow, such as Google and Facebook. And AOL was the portal, bringing almost everyone who logged on during the internet’s earliest days.

Verizon spent about $9 billion buying AOL and Yahoo over two years starting in 2015, hoping to jump-start a digital media business that would compete with Google and Facebook.

It didn’t work — those brands were already fading even then — as Google and Facebook and, increasingly, Amazon dominate the U.S. digital ad market. The year after buying Yahoo, Verizon wrote down the value of the combined operation, called “Oath,” by roughly the value of the $4.5 billion it had spent on Yahoo.

READ MORE: Piedmont School District Apologizes for Offering 'White Student Support Group' After Chauvin Verdict

Verizon has been shedding media assets as it refocuses on wireless, spending billions on licensing the airwaves needed for the next generation of faster mobile service, called 5G. It sold blogging site Tumblr in 2019 and HuffPost to BuzzFeed late last year. The digital media sector in recent years has been consolidating as companies seek profitability.

The properties Verizon is selling include Yahoo Finance, Yahoo Mail and the tech blogs Engadget and TechCrunch. Despite its difficulty competing with tech giants for ad dollars, leading to cost cuts and layoffs, Verizon Media’s revenue rose 10% in the most recent quarter from the year before, to $1.9 billion.

Financial firms have played an increasingly prominent role in traditional media as well in recent years, buying up newspaper chains and slashing costs.

Verizon will receive $4.25 billion in cash, preferred interests of $750 million and the minority stake.

The deal is expected to close in the second half of the year.

MORE NEWS: Miles Hall Shooting: No Charges Against Walnut Creek Police Officers In 2019 Killing

Shares of Verizon Communications Inc., based in New York, rose less than 1% Monday.