Rescue work was completed at 6.00 am (0300 GMT), deputy prime minister Recep Akdag was quoted as saying by Anadolu.
At least 10 people have been killed and 73 others injured after a busy passenger train derailed in Turkey.
Emergency services, military and ambulance helicopters arrived at the scene.
Television pictures showed several train carriages laying on their sides, and shocked injured being taken away on stretchers. "The accident happened because of adverse weather conditions", he added.
The cause of the crash is not clear, but officials said that heavy rains were reported in the region.
Five of the train's six cars derailed in a village in Tekirdag Province after "the ground between the culvert and the rail collapsed" due to heavy rains, the Ministry of Transport said.
The train had departed from Corlu, a district in the northwestern Turkish province of Tekirdag, about 120 km (75 miles) west of Istanbul.
President Recep Tayyip Erdogan expressed his condolences to families of those who lost their lives in the accident that has "deeply upset the whole nation".
In a statement, Erdogan said the train derailment is being investigated thoroughly.
Turkey's audiovisual authority RTUK later said the government had issued a temporary ban on broadcasting images from the scene.
Turkish passengers have in general preferred taking planes or buses for intercity travel, but this has been changing with the new high-speed lines.
"A suburban train had an accident. due to a landfall".
Turkey's rail network has been hit by several fatal accidents in recent years.