War, which had strengthened the Ottoman state when the sultans led their armies in person, exhausted the state when they preferred the easy triumphs of the harem to the ordeal of battle. Domination of life and thought by a fatalistic and unprogressive religion stifled Islamic science, which in the Middle Ages had been pre-eminent; knowledge grew in the West and lagged in the East.