The end of the Greek War of Independence (1821–29) had bequeathed several problems to the nascent Kingdom of Greece, among them the organization of a new and reliable regular army following the collapse of the first such attempts after the murder of Governor Ioannis Kapodistrias in 1831 and the period of political anarchy and infighting that followed. This process began with the arrival of the Bavarian King Otto, accompanied by Bavarian troops, in 1833. The new regime abolished the irregular forces that had been left over from the War of Independence, and organized a new military, with mixed Greek and Bavarian command staff.