The inhabitants fought with Ottoman forces multiple times from 1780 to 1895 to preserve their autonomy.
This passage describes a period of conflict between the inhabitants and the Ottoman Empire, where they fought for autonomy.