José ruled until 1785, when he handed power over to his brother Afonso V (1785–87). Afonso's brief reign ended in his sudden death, rumored to be by poisoning. A confused struggle broke out following Afonso's death. By 1794, the throne ended up in the hands of Henrique I, a man of uncertain factional origin, who arranged for three parties to divide the succession. Garcia V abrogated the arrangement, proclaiming himself king in 1805. He ruled until 1830. André II, who followed Garcia V, appeared to have restored the older rotational claims, as he was from the northern branch of the Kinlaza, whose capital had moved from Matadi to Manga. Andre ruled until 1842 when Henrique II, from the southern (Mbidizi Valley) branch of the same family, overthrew him. Andre, however, did not accept his fate and withdrew with his followers to Mbanza Mputo, a village just beyond the edge of São Salvador, where he and his descendants kept up their claims. King Henrique II, who came to power after overthrowing André II, ruled Kongo from 1842 until his death in 1857.