Ottoman rule was not without resistance