After the Hunnic invasion, many Goths became subjects of the Huns. A section of these Goths under the leadership of the Amali dynasty came to be known as the Ostrogoths. Others sought refuge in the Roman Empire, where many of them were recruited into the Roman army. In the spring of 399, Tribigild, a Gothic leader in charge of troops in Nakoleia, rose up in rebellion and defeated the first imperial army sent against him, possibly seeking to emulate Alaric's successes in the west. Gainas, a Goth who along with Stilicho and Eutropius had deposed Rufinus in 395, was sent to suppress Tribigild's rebellion, but instead plotted to use the situation to seize power in the Eastern Roman Empire. This attempt was however thwarted by the pro-Roman Goth Fravitta, and in the aftermath, thousands of Gothic civilians were massacred in Constantinople, many being burned alive in the local Arian church where they had taken shelter. As late as the 6th century Goths were settled as "foederati" in parts of Asia Minor. Their descendants, who formed the elite "Optimatoi" regiment, still lived there in the early 8th century. While they were largely assimilated, their Gothic origin was still well-known: the chronicler Theophanes the Confessor calls them Gothograeci.