Ksaver Šandor Gjalski (26 October 1854 – 6 February 1935) was a Croatian writer and civil servant.He was born Ljubomil Babic at Gredice, near Klanjec in Hrvatsko Zagorje into a minor aristocratic family.
He finished high school in Varaždin and earned law degrees in Zagreb and Vienna.He was involved in politics.
In 1906, he was elected into the Croatian Parliament.
From 1917-18, he held the post of mayor of the Zagreb county.He wrote novels, but his best known work is Pod starim krovovima (Under Old Roofs), a collection of short stories in which he described the economic decline of the Croatian aristocracy.
His writings were heavily inspired by Turgenev and Šenoa, as well as realism and romanticism in general.