Vesic, who resigned after the incident, was arrested on 21 November.
A Serbian court released from custody former transport minister Goran Vesic, who was detained over the Novi Sad train station tragedy that killed 15 people.
On 1 November, the concrete roof of the station collapsed, shortly after lengthy repair work on the facility.
Vesic, who resigned after the incident, was arrested on 21 November.
Public outrage over the tragedy sparked protests in the thousands across the country, with many blaming the deaths on government corruption and inadequate oversight of construction projects.
The pre-trial panel of the city's High Court said the evidence presented by the prosecution did not give "reasonable doubt that he committed a grave crime against public security".
"The pre-trial chamber terminated Goran Vesic's pre-trial detention and ordered his immediate release," the statement added. The decision does not affect the further conduct of the investigation.
No formal charges have been brought against Vesic.
On Tuesday, 26 November, he was admitted to hospital on medical advice, citing his deteriorating health due to a hunger strike.
However, he never made any demands or specified what he was protesting.
Last week, the Novi Sad court ordered that 12 people be detained for up to 30 days, including Vesic, and that two be placed under house arrest.
The opposition welcomed the arrests.
Protesters are demanding the resignation of Prime Minister Milos Vucevic and the mayor of Novi Sad. They demanded that those responsible be brought to justice.
Fourteen people aged between 6 and 74 were killed on the spot and a 15th victim died in hospital from his wounds. | BGNES