At the 1995 MMD party convention he was elected the party's vice president. In 1997, he was demoted to the post of Minister of Education, although he remained the vice president of the MMD. Miyanda was expelled from the MMD, together with the famous 22 senior party officials, in 2001 for opposing President Chiluba's third presidential term bid. The third term bid was actively supported and led by Michael Sata, the National Secretary of the MMD. Since 2001 Miyanda is serving as president of the Heritage Party in Zambia. It was formed after his expulsion from the Movement for Multi-Party Democracy (MMD) in May 2001 for opposing the third term bid for president. In 2001 general elections, the party won four parliamentary seats in a unicameral Zambian parliament. The party also won a few local councilors positions across the country. However, the four members of parliament were poached by the then late Zambian president Levy Mwanawasa by including them in government ministerial positions to strengthen parliament numbers. In subsequent elections in 2006, the four members joined then ruling MMD party and heritage party lost all seats in parliament. Miyanda can be described as a perennial candidate. He has unsuccessfully run for president four times (2001, 2006, 2008 and 2011).