"The parent company decided to terminate the agreement with the franchisee due to standard issues," said Sanath Wijewardane, an attorney for McDonald's. "They are not in business in the country. They may decide to return with a new franchisee."
He said the deal was canceled on Wednesday but the stores had continued to operate for some days.
A spokesperson for the local partner, Abans, declined to comment.
Wijewardane declined to describe the issues but local media reported that McDonald's went to court against Abans over allegations of poor hygiene.
Abans says on its it first partnered with McDonald's in 1998.
Sri Lanka, an Indian Ocean island of 22 million people, is recovering from a massive financial crisis.