The article will explain what the Church and its institutions did for the education of children, who found themselves in trouble with their surroundings anddue to offenses weren’t allowed to attend regular educational institutions (mainly folk schools). The first four decades of the 20th century, from the end of the Austrian period until the time of Kingdom of Yugoslavia, will be included. Institutions, which were lead by a monastic community of Salesians (the reformatory in the manor Rakovnik near Ljubljana and the educational institution in Selo near Ljubljana) will be discussed extensively. The youth judge Fran Milčinski had an important role in the enforcement of more human conditions in working with difficult youth. Therefore, attention is also devoted to him and his contribution to a more systematic regularization of working with young people, who in the preceding period were simply sent to prisons and imprisoned together with real criminals. Thanks to F. Milčinski matters became more organized. The educational institution, which was taken over and led by the Salesians until the end of the Austrian period of Slovenian history had an important role in the introduction of new working methods.