The area of Africa now known as Malawi had a very small population of hunter-gatherers before waves of Bantu peoples began emigrating from the north around the 10th century. Although most of the Bantu peoples continued south, some remained permanently and founded ethnic groups based on common ancestry. By 1500 AD, the tribes had established the Kingdom of Maravi that reached from north of what is now Nkhotakota to the Zambezi River and from Lake Malawi to the Luangwa River in what is now Zambia.
Soon after 1600, with the area mostly united under one native ruler, native tribesmen began encountering, trading with and making alliances with Portuguese traders and members of the military. By 1700, however, the empire had broken up into areas controlled by many individual ethnic groups. The Swahili-Arab slave trade reached its height in the mid- 1800s, when approximately 20,000 people were enslaved and considered to be carried yearly from Nkhotakota to Kilwa where they were sold.
Missionary and explorer David Livingstone reached Lake Malawi (then Lake Nyasa) in 1859 and identified the Shire Highlands south of the lake as an area suitable for European settlement. As the result of Livingstone's visit, several Anglican and Presbyterian missions were established in the area in the 1860s and 1870s, the African Lakes Company Limited was established in 1878 to set up a trade and transport concern working closely with the missions, and a small mission and trading settlement was established at Blantyre in 1876 and a British Consul took up residence there in 1883. The Portuguese government was also interested in the area so, to prevent Portuguese occupation, the British government sent Harry Johnston as British consul with instructions to make treaties with local rulers beyond Portuguese jurisdiction.
In 1889, a British protectorate was proclaimed over the Shire Highlands, which was extended in 1891 to include the whole of present-day Malawi as the British Central Africa Protectorate. In 1907, the protectorate was renamed Nyasaland, a name it retained for the remainder of its time under British rule. In a prime example of what is sometimes called the "Thin White Line" of colonial authority in Africa, the colonial government of Nyasaland was formed in 1891. The administrators were given a budget of £10,000 (1891 nominal value) per year, which was enough to employ ten European civilians, two military officers, seventy Punjab Sikhs, and eighty-five Zanzibar porters. These few employees were then expected to administer and police a territory of around 94,000 square kilometres with between one and two million people.
In 1944, the Nyasaland African Congress (NAC) was formed by the Africans of Nyasaland to promote local interests to the British government. In 1953, Britain linked Nyasaland with Northern and Southern Rhodesia in what was the Federation of Rhodesia and Nyasaland, often called the Central African Federation (CAF), for mainly political reasons. Even though the Federation was semi-independent, the linking provoked opposition from African nationalists, and the NAC gained popular support. An influential opponent of the CAF was Dr. Hastings Banda, a European-trained doctor working in Ghana who was persuaded to return to Nyasaland in 1958 to assist the nationalist cause. Banda was elected president of the NAC and worked to mobilise nationalist sentiment before being jailed by colonial authorities in 1959. He was released in 1960 and asked to help draft a new constitution for Nyasaland, with a clause granting Africans the majority in the colony's Legislative Council.
In 1961, Banda's Malawi Congress Party(MCP) gained a majority in the Legislative Council elections and Banda became Prime Minister in 1963. The Federation was dissolved in 1963, and on 6 July 1964, Nyasaland became independent from British rule and renamed itself Malawi. Under a new constitution, Malawi became a republic with Banda as its first president. The new document also formally made Malawi a one-party state with the MCP as the only legal party. In 1971, Banda was declared president-for-life. For almost 30 years, Banda presided over a rigidly authoritarian regime, which ensured that Malawi did not suffer armed conflict. Opposition parties, including the Malawi Freedom Movement of Orton Chirwa and the Socialist League of Malawi, were founded in exile.
Malawi's economy while Banda was president was often cited as an example of how a poor, landlocked, heavily populated, mineral-poor country could achieve progress in both agriculture and industrial development.While in office, and using his control of the country, Banda constructed a business empire that eventually produced one-third of the country's GDP and employed 10% of the wage-earning workforce. All money earned by Banda was ploughed back into developing Malawi and was symbolised by the building of a top boarding school called Kamuzu Academy (Eton of Africa). In Banda's own words "I do not want my boys and girls to do what I had to do — to leave their homes and their families and go away from Malawi to get an education", was the reason for gifting this school to Malawi.
Under pressure for increased political freedom, Banda agreed to a referendum in 1993, where the populace voted for a multi-party democracy. In late 1993 a presidential council was formed, the life presidency was abolished and a new constitution was put into place, effectively ending the MCP's rule. In 1994 the first multi-party elections were held in Malawi, and Banda was defeated by Bakili Muluzi (a former Secretary General of the MCP and former Banda Cabinet Minister). Re-elected in 1999, Muluzi remained president until 2004, when Dr. Bingu wa Mutharikawas elected. Although the political environment is described as "challenging", as of 2009, the multi-party system still exists in Malawi. Multiparty parliamentary and presidential elections were held for the fourth time in Malawi in May 2009, and President Mutharika was successfully re-elected, despite charges of election fraud from his rival.
President Mutharika was seen by some as increasingly autocratic and dismissive of human rights, and in July 2011 protests over high costs of living, devolving foreign relations, poor governance and a lack of foreign exchange reserves erupted. The protests left 18 people dead and at least 44 others suffering from gunshot wounds. In April 2012, Mutharika died of a heart attack; the presidential title was taken over by former Vice-President Joyce Banda.
In 2014 Joyce Banda lost elections (coming third) and was replaced by Arthur Peter Mutharika, the brother of the third elected president of Malawi.