Boston has signed a new agreement with Wynn Resorts casino company that will give the city millions to pay for traffic improvements. 

The deal is in connection with the planned casino in Everett and comes after a 2-year legal dispute between Wynn and Mayor Marty Walsh. 

During the dispute, Boston said patrons would have to travel through and impact Boston to get to the casino. In turn, Walsh wanted money for the impacts. 

Under the agreement, Boston would receive $68 million in mitigation funding and $20 million per year for local businesses for the next 15 years, according to Walsh’s office. 

In total, the city would receive $368 million. 

The agreement includes $31 million over 15 years for community impact and $25 million over 10 years for Sullivan Square infrastructure improvements.

Also, it would give Boston a chance to create an open public space in Charlestown, according to the mayor’s office. 

In a statement, Walsh said: 

"Our efforts over the past two years have been to protect the people of Boston and ensure the neighborhood of Charlestown is treated fairly," Mayor Walsh said. "Residents have been trying for years for a solution for traffic congestion in Sullivan Square and Rutherford Avenue, and we must work together to improve local transportation infrastructure. I offered to keep an open line of communication throughout this process and I thank Steve Wynn for coming back to the table to listen to Boston’s needs."

Also, Wynn would have to make additional traffic improvements, according to the mayor’s office. 

(Copyright (c) 2015 Sunbeam Television. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed.)

Join our Newsletter for the latest news right to your inbox