After several centuries of independence, however, in the late 17th century the Jonang order and its teachings came under attack by the 5th Dalai Lama, who converted the majority of their monasteries in Tibet to the Gelug order, although several survived in secret.