Ukrainian troops and pro-Russian separatists have fought their first serious battles in months and Ukraine's defence minister said an attempt by rebels to take the eastern town of Maryinka had been thwarted.

The Ukrainian military said the Russian-backed rebels had tried to advance using tanks and up to 1,000 fighters west of the main rebel stronghold of Donetsk, in the most significant escalation of the conflict in about three months and in defiance of a ceasefire deal.

The separatists denied their forces had launched an assault on government-held Maryinka, a town which had a pre-conflict population of about 9,900 and lies just nine miles west of Donetsk.

They accused government troops of firing artillery at rebel territory around Donetsk, killing 15 people. Electricity supplies have been cut off, trapping hundreds of miners underground in two mines, they said.

The fighting, in which both sides used heavy weapons, went far beyond the regular low-level skirmishing which has regularly punctuated a ceasefire brokered in February by the leaders of Ukraine, Russia, Germany and France, but which has nonetheless claimed lives on an almost daily basis.

The fighting started early yesterday and ended almost 12 hours later.

"For the moment, storming operations have been halted," Defence Minister Stepan Poltorak said.

A military spokesman was later quoted as saying separatists had launched new attacks on Maryinka and that parts of the town were on fire. Other spokesmen said government troops were still in control.

Many heavy weapons have been pulled back, under the ceasefire agreement brokered in Minsk, Belarus, to put the warring sides out of range of each other's big guns.

But the Ukrainian military acknowledged it had used heavy weapons.

"For the purpose of appropriate response, we were forced to use heavy artillery," military spokesman Oleksiy Mazepa said.

Senior rebel commander Eduard Basurin said separatist forces had only used weapons in defence, denying any attempt to advance.

"We are not carrying out offensive actions," separatist press service DAN quoted him as saying.

He said 15 fighters and civilians had been killed as a result of shelling on rebel territory and more than 900 miners had been trapped underground after the clashes caused a power failure at two larges mines, Skochinsky and Zasyadko, in Donetsk. They were later evacuated, the separatist emergency services said.

Ninety people, wounded in shelling on Wednesday, had to be evacuated along with other patients from a hospital in Donetsk's Petrovsky district, after the building was also cut off from power, senior doctor Igor Rutchenko said.