During the seven years of her regency, Sophia made a few concessions to posads and loosened detention policies towards runaway peasants, which caused dissatisfaction among the nobles. She also made an effort to further the organization of the military. Notably intrigued by baroque style architecture, Sophia held responsibility for the promotion of the foreign district, and the creation of the Slavonic-Greek-Latin Academy, the first Russian higher learning institution. The most important highlights of her foreign policy, as engineered by Golitsyn, were the Eternal Peace Treaty of 1686 with Poland, the 1689 Treaty of Nerchinsk with China, and the Crimean campaigns against Turkey. Although spearheaded by Prince Golitsyn, Sophia's reign oversaw two of the earliest diplomatic treaties and underwent inner growth and progress. Despite her other achievements, Sophia's influence and effect on a young Peter remains as the most historically significant portion of her reign, as the rebellion of 1682 bred a distrust in nobility that came to define his leadership.