Malawi became an independent country in 6 July 1964. Hastings Banda became the first president. Constitution made Malawi become a republic and one-party state. Banda's Malawi Congress Party (MCP) was the only legal party in the country. In 1971, Banda became president for life. For almost 30 years, Banda ruled over a harsh government which kept Malawi out from war.