We may say that from the start of the 12th to the beginning of the 15th centuries, expect for few brief periods, the Trogirians recognized the sovereignty of the Hungaro-Croatian kings as their natural rulers. In 1105, the King Colomanus, after he had conquered Dalmatia and had been crowned with the Dalmato-Croatian crown, issued a charter in which he guaranteed the town its liberties. One of the most important events in the history of Trogir was, doubtless, the stay of the King Bela IV and his retinue in Trogir during the Tatar invasion in March 1242. Like other Dalmatian cities, Trogir was subjected to constant Venetian pressure from the sea, which culminated in the 12th century. Before falling at last into Venetian hands, for the longest period Trogir recognized the Hungarian sovereigns, since these distant rulers from the North treated the town extreemly leniently. The fighting against Split in the period 1242-1244 was, doubtless, a historical landmark for Trogir. The hostilities started as a dispute between the neighbors concerning borders and property of single estates which the Hungarian sovereigns granted now to one and then to the other side. In 1378, during the warfare between Venice on one and Genoa and Hungary on the other with side (1376-1381), Trogir found itself at the very centre of fighting. Namely, with the Hungarian support, the Genovese fleet anchored in the harbour of Trogir and put up a stiff resistence to the fire from Venetian ships.
The relations with the feudal lords from the hinterland were always important for Trogir. At the start of the 12th century the citizens of Trogir and Split fought against the most powerful feudal lord of the time, Domaldo. Although the Commune always strived to represent the interests of the town as a whole, it often happened that the interests of its classes were sharply contrasted. The nobility was generaly loyal to the Hungarian Crown from which they received whole villages in the hinterland. In the riots which broke up in Decembre 1357 a popular rebellion blended with paying off of old scores among the noble families, in which the Cega family suffered complete defeat. Frequent were also the disputes between the Commune and the Church, as well as conflicts inside the Church, between the bishop and the clergy. Important source for the study of the history of Trogir from the second half of the 13th to the first decades of the 14th centuries are hundreds of legal documents written by Trogirian scriveners and compiled by the historian Miho Barada. In time the Trogirians received their education in different foreign countries. Augustin Kazotic, a man of exemplary life, venerated by the Trogirians as saint, studied in Paris. Still remembering the epidemic plague which raged around 1348 are the ruins of the chapel of Saint Eustachius erected at the summit of the hill of Krban as a pledge for the salvation from the Black Death.