Ludwig Schwarz was the first of nine children and grew up in Most pri Bratislave. After the expulsion of his family from Slovakia in 1945, he arrived in Vienna, where he attended primary school. He attended a Gymnasium in Vienna for a time, but switched to the Salesian school in Ebreichsdorf-Unterwaltersdorf at the age of fourteen. In June 1959, he sat for the Matura exams and subsequently joined the order of the Salesians of Don Bosco. He was assigned a two-year teaching practicum; for the first year he served as a general assistant in Ebreichsdorf, and the second at the Schülerheim Vinzentinum in Klagenfurt. He studied philosophy in Ebreichsdorf and Catholic theology in Klagenfurt; from 1961 to 1964 he studied at Benediktbeuern Theological College. On 29 June 1964, he was ordained to the priesthood by the Bishop of Augsburg, Josef Stimpfle. He afterwards served briefly as assistant chaplain at a parish church inGraz. He then studied classical philology and archeology at the University of Vienna, and was also the hospital chaplain at Sacred Heart Hospital. He received his doctorate in 1970. From 1969 to 1978, he was rector of an inter-diocesan seminary, Canisiusheim Centrum Horn. Until 1984, he was superior of the Austrian province of the Salesians, situated in Vienna. In 1984 he was appointed to a directorship at the Salesian Pontifical University in Rome. Starting in 1985, he taught Christian classical philology at the university. In 1993, he assumed the responsibilities of provincial for the Roman Province of the Salesians of Don Bosco. From February 1999 to February 2005, he was National Director of Pontifical Mission Societies in Austria. On 15 October 2001, Pope John Paul II appointed him an auxiliary bishop for the Archdiocese of Vienna with the titular see of Simidicca. Schwarz received episcopal ordination on 25 November 2001 by Cardinal Christoph Schönborn at St. Stephen's Cathedral in Vienna. In that capacity, he directed Vienna's Diocesan Office for Mission and Development.
Schwarz was appointed the Diocesan Bishop of Linz on 6 July 2005 by Pope Benedict XVI; he assumed that office on 18 September. Schwarz put an end to some of the liberal practices of his predecessor, Maximilian Aichern. Unlike his predecessor, Schwarz is typically unwilling to grant exemptions from ecclesiastical norms. He has enforced Catholic teaching that prohibits baptisms and preaching by lay people, and has been more stringent about norms for the reception of the Eucharist. Schwarz has also had to deal with some controversy over the nomination of Gerhard Maria Wagner as auxiliary bishop of the diocese, whose selection by the Congregation for Bishops was rejected by many of the liberal deans in Austria. Wagner turned down the appointment as a result.