Two years after the CMS established a mission, French Catholic White Fathers also arrived at the king's court, and the stage was set for a fierce religious and nationalist rivalry in which Zanzibar-based Muslim traders also participated. By the mid-1880s, all three parties had been successful in converting substantial numbers of Baganda, some of whom attained important positions at court. When a new young kabaka, Mwanga, attempted to halt the foreign ideologies that he saw threatening the state, he was deposed by the armed converts in 1888. A four-year civil war ensued in which the Muslims were initially successful and proclaimed an Islamic state. They were soon defeated, however, and were not able to renew their effort.