In 1897, Ssekabaka Mwanga launched a rebellion but was defeated and was subsequently captured and exiled, in 1899, to the Seychelles alongside Omukama Kabalega, and his 3-year-old son was made ''Kabaka'' by the combined forces of the European officers leading Nubian and Baganda colonial soldiers. This state of affairs later culminated in the signing of the Buganda Agreement (1900) that formalised British colonial rule in Buganda.