When Poland regained her independence in 1918, Kozłowski volunteered for the Polish Army and served with distinction during the Polish-Bolshevik War. Afterwards he was demobilized and returned to Lwów, where he completed his studies at the University of Jan Kazimierz. In 1921 he became a professor there and the head of the Faculty of Pre-history.