Debevoise & Plimpton and Latham & Watkins have won the leading roles advising Amazon.com on its agreement to buy online gaming network Twitch Interactive for $970m (£585m).

The deal, expected to close in the second half of this year, will see Amazon gain a gaming community of more than 55 million monthly visitors.

Debevoise is acting for Amazon with a team primarily based in New York and led by corporate partner William Regner. It also includes tax partner Michael Bolotin, employment partner Lawrence Cagney, litigator Gary Kubek and Washington corporate intellectual property partner Jeffrey Cunard.

Latham is representing Twitch, with a team led out of the Silicon Valley office, led by corporate partners Luke Bergstrom and Kathleen Wells. Fellow corporate partner JD Marple is advising on intellectual property matters, while tax partner Jay Metz is providing counsel on employee benefits and compensation.

The firm also fielded a team based in San Francisco, which includes partners Joshua Holian and Karen Silverman on antitrust matters and partners Kirt Switzer and Grace Chen on tax.

Debevoise is a regular adviser to Amazon, with Regner leading teams advising the retailer on its purchase of its Goodreads website in March last year and its $500m acquisition of e-commerce platform Quidsi in 2010.

Last year Cleary Gottlieb Steen & Hamilton acted for entities controlled by Amazon founder Jeffrey Bezos in his $250m (£151m) acquisition of US newspaper The Washington Post, with Cravath Swaine & Moore acting for the newspaper's parent company.