Kilmarnock FC has ordered a local baker to stop using the name Killie Pie amid a heated legal row.

The club became embroiled in a tussle with Brownings Bakers after the caterer sought to trademark the famous match-day delicacy.

Managing director John Gall said he was told the bakery's contract with the club would be terminated on May 31 and the pie would have to be rebranded while the legal dispute is ongoing.

He said: "For years we've been making the Killie Pie and supplying the football club, doing the match-day catering. We were using the name Killie Pie.

"The amount of money that I've given them in sponsorship, for the name Killie Pie, for the catering - I'm well over a million pounds that I've put into the football club.

"Two weeks ago, I got an email from the club secretary Michael Johnson that he's terminating my contract as of May 31, totally out of the blue.

"They've also said that come May 31 we can't use the name Killie, so we're going to rebrand it. We're going to keep this going for as long as it needs until they withdraw their objection and if they're not going to withdraw their objection, we will just see them in court over it. We're going to fight it all the way."

Mr Gall fronted a group of local businesses who in 2013 attempted to oust former chairman Michael Johnson, who is now club secretary at Rugby Park.

The football club said it is the registered holder of the "Killie" trademark and it has instructed its trademark attorneys, Marks & Clerk, to oppose Brownings' application.

A statement said: "In 2003, it was agreed by the then-Kilmarnock FC chief executive that Brownings would supply the match-day tea bar catering and as part of that agreement, Brownings were given the right to use the club's 'Killie' trademark on its pies.

"This was a commercial agreement which included an annual sponsorship spend on advertising and hospitality but with no additional charge for Brownings' use of the 'Killie' trademark.

"The club has supported the Brownings business for 13 years by allowing them royalty-free use of the club's trademark 'Killie' on pies. In 2003, Brownings' sales of the 'Killie Pie' were a few thousand per annum."

The statement adds: "In the summer of 2015, Brownings opened discussions for an exclusive trademark licence agreement through their solicitors but subsequently, without informing the club, Brownings applied for their own trademark for the 'Killie Pie' name.

"The club has instructed its trademark attorneys, Marks & Clerk, to oppose Brownings' trademark application.

"The club has also taken expert legal advice from Burness Paull LLP and, based upon that, has served notice that all contractual arrangements with Brownings will end on May 31, 2016. Both Marks & Clerk and Burness Paull are confident of successfully protecting the club's ownership of its trademark."