LOS ANGELES — Netflix won a battle for talent in the increasingly heated streaming wars on Wednesday.

In a blow to HBO, Amazon and The Walt Disney Company, the longtime producing partners David Benioff and D.B. Weiss, the creators of the television juggernaut “Game of Thrones,” signed a deal with the streaming company to create new TV shows and feature films.

Deadline first reported the news, and Netflix confirmed it on Wednesday.

Mr. Benioff and Mr. Weiss, who started as fiction writers and met each other as graduate students in the 1990s, adapted the George R. R. Martin series of fantasy novels “A Song of Ice and Fire” into the most popular series in HBO’s history. The show consistently generated social-media conversation during its eight-year run while also winning the Emmy in the best drama category three times.

Other suitors for the duo’s services included HBO, Amazon and Disney.

“They are a creative force and have delighted audiences worldwide with their epic storytelling,” said Ted Sarandos, Netflix’s chief content officer. “We can’t wait to see what their imaginations will bring to our members.”