Fox News Network and Dish Network announced Thursday that they have agreed on a new carriage contract, bringing Fox channels back to the satellite service in the process.

The multi-year deal ends the three-week struggle between the two networks that saw Dish pull the Fox News Channel and Fox Business Network from its lineup. Executives at Dish said Fox increased fees for sports and information channels in a way that wasn't part of the original deal between companies, according to CNET.

Fox responded by saying Dish was trying to censor its channels as an intimidation tactic, which resulted in their distribution deal not working out.

This conflict also led to the third programming blackout Dish has experienced in three months. The first took place after a contract dispute with Turner Broadcasting and led to Dish subscribers losing access to several channels in October before they were restored after negotiations, and the second occurred after a contract dispute with CBS programming, which led to a multi-year carriage agreement.

The new deal with Fox News will have Fox Business Network featured in all Dish TV packages offering Fox News, USA Today reported. While Fox channels won't be added to Dish's new Sling TV streaming service, which costs $20 a month, Fox can now make its business channel accessible in more homes that have TVs.

Financial details of the agreement between Fox and Dish have not been announced.

"We thank the viewers of Fox News and Fox Business and Dish customers for their patience throughout the process," Fox News and Fox Business Executive Vice President of Distribution Tim Carry and Warren Schlichting, senior vice president of programming at Dish, said in a joint statement.