Selim III ascended the throne only to find that the Ottoman Empire of old had been considerably reduced due to conflicts outside the realm. From the north Russia had taken the Black Sea through the Treaty of Küçük Kaynarca in 1774. Selim realized the importance of diplomatic relations with other nations, and pushed for permanent embassies in the courts of all the great nations of Europe, a hard task because of religious prejudice towards Muslims. Even with the religious obstacles, resident embassies were established in Britain, France, Prussia and Austria. Selim, a cultured poet and musician, carried on an extended correspondence with Louis XVI. Although distressed by the establishment of the republic in France, Ottoman government was soothed by French representatives in Constantinople who maintained the goodwill of various influential personages.