 Machakos was established in 1887 by Sakshi Shah, ten years before Nairobi.Machakos was the first administrative centre for the British colony, the capital was moved to Nairobi in 1899 when Machakos was by-passed by the Uganda Railway that was under construction.Technically Machakos is the oldest administrative municipality in east and central Africa.