LOS ANGELES — Netflix has agreed to buy the film and streaming businesses of Warner Bros Discovery in major Hollywood deal worth $72bn (£54bn).
The streaming giant had emerged as the top bidder for Warner Bros ahead of rivals Comcast and Paramount Skydance after a drawn-out battle.
Warner Bros owns franchises including Harry Potter and Game of Thrones, and the streaming service HBO Max.
The takeover is set to lead to a radical reshaping of the US film and media industry, but analysts have warned that it could face resistance from competition authorities.
Netflix co-chief executive Ted Sarandos said that by combining the Warner Bros library of show and movies with the streaming platform, "we can give audiences more of what they love and help define the next century of storytelling".
Netflix's other co-chief executive, Greg Peters, said the deal meant Netflix could introduce Warner Bros products to a broader audience.
The cash and stock deal is worth $27.75 per Warner Bros share, with a total enterprise value - which includes the company's debts and the value of its shares -of about $82.7bn.
David Zaslav, president and chief executive of Warner Bros, said the announcement "combines two of the greatest storytelling companies in the world".
"By coming together with Netflix, we will ensure people everywhere will continue to enjoy the world's most resonant stories for generations to come," he said.
Both companies said the deal would enable Netflix to expand its studio production capacity and increase its investment in original content.
The sale was unanimously approved by the boards of directors of both Netflix and Warner Bros.
In the agreement, Netflix will complete the takeover after Warner Bros finalises its previously announced plans to separate its streaming and studios division from its global networks division into two publicly traded companies.
Its global networks division includes its cable channels such as CNN, as well as its sports brands and free-to-air channels in Europe.
That separation is expected to be completed between July and September next year.
Paolo Pescatore, founder and technology media and telecom analyst at PP Foresight, said the sale was "a huge statement of intent and underlines Netflix aspirations to be a global leader in the new world order of streaming".
He added the "surprising move" made sense for Warner Bros, "but will provide a headache for Netflix."
"This is uncharted waters and previous big media acquisitions have been poorly executed. If and once approved, Netflix will need to have a razor sharp focus on integration and execution," he said.
Rival Paramount had made an initial bid to buy the whole company, including its cable networks, in October. Warner Bros rejected this move before putting itself up for sale.
Ahead of Friday's announcement Emma Wall, chief investment strategist at Hargreaves Lansdown, said the US competition regulator was likely to get involved whoever the winner was.
"This will create a global mega power in broadcast entertainment which the regulator will want to look at," she said.
Tom Harrington, head of television at Enders Analysis, said it was hard to gauge whether the deal would win regulatory approval, but if it went through it would have a massive impact on cinema.
"Were it to go through it would reorient Hollywood, with a streamer acquiring a business much of which it is existentially the antithesis of - Netflix has always had some limited use for the cinema but generally its offering undermines it," he said.
Harrington said there was likely to be "big reductions" in television and film output from a merged entity, which would lead to resistance to the move from parts of Hollywood and relevant unions.
"HBO, the creative jewel, would be terribly exposed within Netflix, although it has survived difficult owners for a lot of its existence," he said.
For consumers, Harrington said a merger was likely to lead to higher costs.
"Netflix would get more expensive and even though HBO Max would be shuttered/become non-essential, the greater penetration of Netflix households would likely mean an increase in total overall subscription revenues." — BBC