But Ottoman rule was not without resistance,