Mr. Kibaki won the presidency in 2002 and pledged to root out the systemic corruption that marked former President Daniel arap Moi 's 24 years in power .