Thousands of people led by judges and lawyers marched through the Turkish capital Ankara in protest at a suspected Islamist gunman's attack on a group of judges.
The marchers converged on the mausoleum of Mustafa Kemal Ataturk, the founder of the modern secular Turkish state.
The attacked judges, one of whom died, had upheld a ban on Muslim headscarves in universities and government offices.
The protesters want the country to remain true to the ideals Ataturk's state, which arose from the ashes of the Ottoman Empire after World War I.
A military guard of honour preceded the marchers, climbing the steps to the mausoleum.
Crowds also gathered at the funeral of the dead judge, Mustafa Yucel Ozbilgin, outside Ankara's Kocatepe mosque.
Some mourners booed ministers from the ruling AK party, which has Islamist roots. Some blame the government for encouraging radicals by opposing the headscarf ban.