The effective military and bureaucratic structures of the previous century also came under strain during a protracted period of misrule by weak Sultans. But in spite of these difficulties, the Empire remained a major expansionist power until the Battle of Vienna in 1683, which marked the end of Ottoman expansion into Europe.