From the late 16th century onward, the Abbey of St. Ulrich and St Afra was one of the 40-odd self-ruling imperial abbeys of the Holy Roman Empire and, as such, was a virtually independent state. The territory of that state was very fragmented: the abbey of St. Ulrich and St Afra proper enclaved within the Free Imperial City of Augsburg, and several small territories disseminated throughout the region. At the time of its dissolution in 1802, the Imperial Abbey covered 112 square kilometers and had about 5,000 subjects.
The Benedictine monastery was preceded by an original foundation established at an uncertain date, but at least as early as the 10th century (and in its turn quite possibly a refoundation of a still earlier one from the 5th or 6th centuries), by the Kollegiatstift St. Afra, a community of the priests charged with the care of St Afra's Church (now the Basilica of Saints Ulrich and Afra), where the relics of Saint Afra were venerated, and next door to which the community premises were built.
Between 1006 and 1012, Bruno, Bishop of Augsburg, removed the canons to the cathedral chapter and gave the premises to Benedictine monks whom he brought from Tegernsee Abbey, thus turning it into a Benedictine monastery. It was granted Imperial immediacy as an Imperial abbey in 1577, but this status was bitterly contested by the bishops of Augsburg, and the legal conflict was resolved in favour of the abbey only in 1643/44.
The abbey was dissolved in 1802 during the secularisation of Bavaria. The city of Augsburg and the state of Bavaria divided its territory between them. The monks however were permitted to remain in the premises of the dissolved monstery. In 1805 a French military hospital was installed here; after six monks, including the abbot, had died of infectious diseases, the remainder moved into a private house. The hospital was replaced in 1807 by a Bavarian cavalry barracks, known as the Ulrichskaserne.
The barracks remained here until World War II, when in 1944 the buildings were largely destroyed. The remains were not cleared until 1968–71. On the site the 'Haus St. Ulrich' has stood since 1975, an academy and pastoral centre of the Diocese of Augsburg. The sarcophaguses of Saint Afra and Saint Ulrich are preserved in the crypt.
References:The Château de Foix dominates the town of Foix. An important tourist site, it is known as a centre of the Cathars. Built on an older 7th-century fortification, the castle is known from 987. In 1002, it was mentioned in the will of Roger I, Count of Carcassonne, who bequeathed the fortress to his youngest child, Bernard. In effect, the family ruling over the region were installed here which allowed them to control access to the upper Ariège valley and to keep surveillance from this strategic point over the lower land, protected behind impregnable walls.
In 1034, the castle became capital of the County of Foix and played a decisive role in medieval military history. During the two following centuries, the castle was home to Counts with shining personalities who became the soul of the Occitan resistance during the crusade against the Albigensians.