OAKVILLE, Ont. -- Burger King is in talks to buy Tim Hortons Inc. (TSX: THI) and form a new publicly listed company that would be based in Canada.

They said in a statement Sunday night that Canada would be the largest market of the combined company.

The statement said 3G Capital, the majority owner of Burger King, would continue to own the majority of the shares of the new company on a pro forma basis, with the remainder held by existing shareholders of Tim Hortons and Burger King.

The companies said Oakville, Ont.-based Tim Hortons and Miami-based Burger King would operate as standalone brands.

"Tim Hortons and Burger King each have strong franchisee networks and iconic brands that are loved by their respective consumers," the companies said in a statement.

"Any transaction will be structured to preserve these relationships and deepen the connections each brand has with its guests, franchisees, employees and communities."

The statement adds that the new corporation would be the world's third-largest quick service restaurant company, with approximately $22 billion in system sales and over 18,000 restaurants in 100 countries worldwide.

The companies said they will not comment further unless there is a deal.

When Tim Hortons chief executive Marc Caira, a former executive at the global operations of Swiss food and beverage company Nestle, took over the top job at the coffee chain last year he placed everything under review.

The company launched a wide ranging review of its priorities and ways that it could boost its reputation with both domestic and international coffee consumers.

Tim Hortons dominates the Canadian coffee market, but it has struggled to find success in the U.S.

It has also faced competition here in Canada in recent years from Starbucks Corp. and McDonalds Corp., which has worked to improve its coffee.

The chain has been working to appeal to customers beyond coffee and doughnuts, with new menu items such as a crispy chicken sandwich and side dishes to boost breakfast and lunch sales.

Shares in Tim Hortons have been trading sharply higher in recent weeks after reporting better than expected financial results and raising its outlook for the year.

Tim Hortons said earlier this month that it now expects its earnings per share to be near the higher end -- or slightly above -- its target range of $3.17 to $3.27 for the year.

The company has a stock market capitalization of more than $9 billion.

Tim Hortons, which took its name from Toronto Maple Leafs player and founder Tim Horton, turned 50 earlier this year.

The now ubiquitous chain started in Hamilton, Ont., in 1964.

It was acquired by burger chain Wendy's International in 1995 and subsequently fully spun off as a separate company in 2006 after an initial public offering.

In February, Tim Hortons announced plans to open 300 new U.S. locations by 2018, which will add to the more than 800 locations already operating south of the border.

The Persian Gulf region is also in the sights for massive growth, as the company wants to boost the number of locations there to 200.

As of June 29, Tim Hortons operated 4,546 restaurants, including 3,630 in Canada, 866 in the United States and 50 in the Middle East.

Tim Hortons shares closed up $1.87 at $68.78 on the Toronto Stock Exchange on Friday.