Machakos County is one of the 47 counties of Kenya. Its capital is Machakos. Its largest town is Machakos, the country's first administrative headquarters. The county had a population of 1,421,932 as of 2019. The county borders Nairobi and Kiambu counties to the west, Embu to the north, Kitui to the east, Makueni to the south, Kajiado to the south west, and Muranga and Kirinyaga to the north west.