Disney will end its distribution deal with Netflix and launch its own streaming service, the company announced today. It intends to launch the service in 2019.

The move is a real blow to Netflix, which secured a valuable streaming deal with Disney back in 2012 — before streaming had really taken off. The deal only kicked into effect last year, so Netflix is barely seeing any benefit here.

At the same time, it’s a natural step for Disney, which has a huge library of valuable movies and shows to offer. Disney already makes it hard to get a lot of its top movies — requiring people to purchase, rather than rent, a film for instance — so it makes sense that we’re seeing the company try to draw even bigger profits from streaming.

Netflix won’t lose its Disney movies right away. Disney says it plans to cut Netflix off starting with the studio’s 2019 films, and Netflix says it’ll be able to keep all the Disney movies it gets through the end of that year. That means Netflix should be able to stream the next two Star Wars movies, but it’ll miss out on the new trilogy’s final installment. “We continue to do business with the Walt Disney Company on many fronts, including our ongoing deal with Marvel TV,” said a spokesperson for Netflix.

Disney is buying most of BAMTech and will also launch an ESPN streaming service

Disney’s streaming service will be built off technology from BAMTech, the MLB-founded video streaming platform. Disney was already a major investor in BAMTech, and today it’s making an even bigger investment — of $1.58 billion — giving it a 75 percent stake in the company. The acquisition still requires regulatory approval.

“This acquisition and the launch of our direct-to-consumer services mark an entirely new growth strategy for the company, one that takes advantage of the incredible opportunity that changing technology provides us to leverage the strength of our great brands,” Disney CEO Bob Iger said in a statement accompanying the announcements.

The Disney-branded streaming service will be the “exclusive home in the US for subscription-video-on-demand viewing,” and will kick off with films including Toy Story 4 and the sequel to Frozen. “Original movies, TV shows, [and] short-form content” will be added to the service, and it’ll be filled out with older movies from Disney and Pixar’s catalog and shows from Disney’s TV channels.

In addition to creating a streaming service for Disney movies and TV shows, the company will also launch a streaming service exclusively for ESPN, targeted for a launch early next year. Disney is promising about “10,000 live regional, national, and international games and events a year,” with individual sports packages available as well. Disney plans to sell both of its subscription services directly to consumers.

ESPN has increasingly been a point of concern for Disney. The channel is expensive, which has led consumers and cable providers to look for ways to drop it from their package or otherwise cut costs. Being able to sell it straight to consumers lets Disney tap into the market of cord cutters who have been missing out on sporting events, while potentially increasing the amount of money it makes per subscriber.

The loss of Disney films will be a major disappointment for Netflix subscribers and will certainly make it harder for Netflix to find new ones. But it’s something that Netflix seems to have been prepared for. The streaming service has reinvented itself over the past several years to become a home for original shows and movies, and this move from Disney both underscores the urgency of that and how correct a move it was.

Just this week, Netflix announced the acquisition of a comic book publisher that’s already seen several successful film adaptations; in light of today’s announcement, it’s easy to see why Netflix would want to lock down even more original properties for itself.

As for Disney, it’s hard to imagine its movie and TV streaming service not being a success. If it’s the only way to stream Disney’s catalog, it’ll be a must-have for a lot of parents — plus fans of Marvel and Star Wars, properties that Disney keeps mining with no end in sight. The big downside for consumers is that this is yet another streaming service you’ll have to pay for just to watch everything you want to watch. But given the size of Disney, it was bound to happen eventually.