After 1462 Wallachia preserved its autonomy mainly through the intervention of Stephen the Great of Moldavia. At the end of the century, however, Radu IV the Great (1495–1508) became an obedient subject of the sultan and visited Istanbul annually to personally offer the tribute. Even so, he could only stay in power by collaborating with the powerful Craioveşti family, strongly connected to the Ottomans by trading. In 1512 a member of this family, Neagoe (1512–1521) rose to throne, but he adopted the dynastic name of Basarab in order to legitimize his rule. He wrote the first original work of Romanian literature, titled "Teachings", to his son, Teodosius on moral, political, and military questions.