At the same time Peter hired a large number of engineers, architects, shipbuilders, scientists and businessmen from all countries of Europe. Substantial immigration of educated professionals eventually turned St. Petersburg into a much more cosmopolitan city than Moscow and the rest of Russia. Peter's efforts to push for modernization in Moscow and the rest of Russia were completely misunderstood by the old-fashioned Russian nobility and eventually failed, causing him much trouble with opposition, including several attempts on his life and the treason involving his own son.[6]