Did they even try? Well, yeah.
"In the years following 1926, Mustafa Kemal introduced a radical departure from previous reformations established by the Ottoman Empire.[73] For the first time in history, Islamic law was separated from secular law, and restricted to matters of religion.[73] Mustafa Kemal said
“ We must liberate our concepts of justice, our laws and our legal institutions from the bonds which, even though they are incompatible with the needs of our century, still hold a tight grip on us.[74] ”
On 1 March 1926, the Turkish penal code was passed. It was modelled after the Italian Penal Code. On 4 October 1926, Islamic courts were closed. Establishing the civic law needed time, so Mustafa Kemal delayed the inclusion of the principle of laïcité until 5 February 1937.
Ottoman practice discouraged social interaction between men and women in keeping with Islamic practice of sex segregation. Mustafa Kemal began developing social reforms very early, as was evident in his personal journal. He and his staff discussed issues like abolishing the veiling of women and the integration of women into the outside world. The clue on how he was planning to tackle the issue was stated in his journal on November 1915;
“ The social change can come by (1) educating capable mothers who are knowledgeable about life; (2) giving freedom to women; (3) a man can change his morals, thoughts, and feelings by leading a common life with a woman; as there is an inborn tendency towards the attraction of mutual affection.[75] ”
Mustafa Kemal needed a new civil code to establish his second major step of giving freedom to women. The first part was the education of girls and was established with the unification of education. On 4 October 1926, the new Turkish civil code passed. It was modelled after the Swiss Civil Code."
Wiki