the dux's main residence from Nin to Klis. The reign of Mislav's successor Trpimir I, is significant for spreading Christianity in the medieval Croatian state, and for the first mention of the name "Croats" in domestic documents. On 4 March, in 852, Trpimir I issued a "Charter in Biaći" () in Latin, confirming Mislav's donations to the Archbishopric in Split. In this document Trpimir I named himself; "By the mercy of God, Duke of Croats" (), and his realm as the "Realm of the Croats" (). In the same document Trpimir I mentioned Klis as his property — seat. Under Klis, in Rižinice, the duke Trpimir built a church and the first Benedictine monastery in Croatia, which is known from the discovery of a stone fragment on a gable arch from an altar screen, inscribed with the duke's name and title. Archaeological excavations found that a church dedicated to Saint Vitus was founded in the 10th century by a certain Croatian king, along with his wife, Queen Domaslava, which got destroyed during Ottoman conquests in the 16th century. A controversial Saxon theologian of the mid-9th century, Gottschalk of Orbais, spent some time at Trpimir's court between 846 and 848. His work "De Trina deitate" is an important source of information for Trpimir's reign. Gottschalk was a witness to the battle between Trpimir and Byzantine strategos, when Trpimir was victorious. During the reign of Croatian king Tomislav, who had no permanent capital, the castle of Klis along with Biograd, were his chief residences. Knights Templar From the early 12th century, and after the decay of the native Croatian royal family of Trpimirović, the castle of Klis was mainly governed by Croatian nobility, under the supremacy of Hungarian kings. The Kingdom of Croatia and the Kingdom of Hungary were, from 1102, in a personal union of two kingdoms, united under the Hungarian king. Andrew II of Hungary was extremely favorably disposed towards the Templars. During his participation in the Fifth Crusade, he appointed Pontius de Cruce, Master of the Order in the Hungarian Kingdom, as a regent in Croatia and Dalmatia. After his return in 1219, in recognition of the great logistical and financial support which the Order had given him during the campaign, he granted the Order the estate of Gacka. Even before his departure from the city of Split in 1217, he had made over to the Templars the castle