Complex sentence: During the 13th and 14th centuries, Karamles became the center of a principality and gained fame due to that and was mentioned in several books as a trade center of immense importance.
Split into simpler sentences: During the 13th and 14th centuries, Karamles became the center of a principality, earning it fame. It was mentioned in several books as a trade center of immense importance.