The train driver was unable to stop in time after around 150 of the animals escaped from their enclosure onto the railway tracks.
A train has crashed into a flock of sheep in south west Germany leaving 45 of the animals dead, police have said.
The four passengers and the driver of the train in Konstanz, on the Swiss border, were not hurt in the collision which occurred at 4.40am local time (3.40am BST).
Police said 150 sheep had escaped from their enclosure before attempting to cross the tracks in the state of Baden-Wurttemberg, Stuttgarter Zeitung newspaper reported.
Its website added that the train driver was unable to stop in time, and a shepherd took responsibility for removing the dead animals.
The railway was closed for several hours after the collision, Stuttgarter Zeitung added.
The train, run by Swiss operator SBB, was a German service travelling from the city of Singen to the town of Engen, both in Baden-Wurttemberg.