Erdogan, accompanied by Finnish counterpart Sauli Niinisto, laid flowers in front of the city’s railway station where two suicide bombers blew themselves up on Saturday.
Turkey’s interior ministry said Wednesday it had removed the police, intelligence and security chiefs of Ankara from their posts in an effort to conduct an effective investigation into the deadly bombings.
The ministry, in a statement on its website late on Tuesday, did not say if the officials would to return to their posts after the investigation.
The blasts killed 97 people at a peace rally organized by leftists and pro-Kurdish activists, making it Turkey’s deadliest attack ever.
The government has said the Islamic State (IS) group is the prime suspect behind the attack, which also injured more than 500.