As videogames become a spectator sport, Amazon.com Inc. just bought the world’s largest arena.

The e-commerce giant said Monday it agreed to acquire Twitch Interactive Inc., a popular Internet video channel for broadcasting, and watching, people play videogames, for about $970 million in cash.

The deal is Amazon’s second biggest, and underscores the popularity of online gaming. Though little-known outside of tech and gaming,…