Complex sentence: Principality of Transylvania became a semi-independent polity which was mostly Turkish but sometimes a Habsburg vassalage.
Split into simpler sentences: Principality of Transylvania became a semi-independent polity. It was mostly Turkish but sometimes a Habsburg vassalage.