Mehmed the Conqueror captured Constantinople and extended the Ottoman Empire into western Anatolia and the Balkans, which later became the heartland of the empire. His expansion cost the empire greatly, however, which led to discontent. His son and successor, Bayezid II, had to earn back the support of the unhappy court officials and Janissaries.