<human>:  When did the Pakistani president Pervez Musharraf become president?
<bot>: Musharraf was the president of Pakistan from 1999 to 2008. He was elected to two consecutive terms, and then he resigned in 2008 after being deposed by the Supreme Court of Pakistan.