Except for two small kingdoms in the north, the territory consisted of groups of villages which were under military pressure from the two neighbouring West African powers – the Ashanti from Ghana and the Dahomey from Benin.
The German Empire established the protectorate of Togoland (in what is now the nation of Togo and most of what is now the Volta Region of Ghana) in 1884 during the period generally known as the "Scramble for Africa".
Following the war, Togoland formally became a League of Nations mandate divided for administrative purposes between France and the United Kingdom.
In December 1956, the residents of British Togoland voted to join the Gold Coast as part of the new independent nation of Ghana.
The situation escalated further on 21 June 1957, when the local population of the Pya-Hodo, Kozah, took advantage of the visit of the United Nations mission, to express its frustration with the French colonial administration.
Faced with the anger of the demonstrators, protesting against the arrest of the Togolese nationalist, Bouyo Moukpé, the colonial army fired on the crowd that frequented the Hoda market, killing 20 and injuring many.
[8] On 5 December 1959 the United Nations’ General Assembly resolved that the UN Trusteeship Agreement with France for Cameroon would end when Togo became independent on 27 April 1960.
A new constitution adopted by referendum in 1961 established an executive president, elected for 7 years by universal suffrage and a weak National Assembly.
On 23 September 1986, a group of some 70 armed Togolese dissidents crossed into Lomé from Ghana in an unsuccessful attempt to overthrow the Eyadéma government.
In April 1991, the government began negotiations with newly formed opposition groups and agreed to a general amnesty that permitted exiled political opponents to return to Togo.
On 27 September, the public overwhelmingly approved the text of a new, democratic constitution, formally initiating Togo's fourth republic.
In retaliation, on 16 November, opposition political parties and labor unions declared a general strike intended to force President Eyadéma to agree to satisfactory conditions for elections.
On 25 March 1993, armed Togolese dissident commandos based in Ghana attacked Lomé's main military camp and tried unsuccessfully to kill President Eyadéma.
Under substantial domestic and foreign pressure and the burden of the general strike, the presidential faction entered negotiations with the opposition in early 1993.
Four rounds of talks led to the 11 July Ouagadougou agreement setting forth conditions for upcoming presidential and legislative elections and ending the general strike as of 3 August 1993.
The presidential elections were set for 25 August, but hasty and inadequate technical preparations, concerns about fraud, and the lack of effective campaign organization by the opposition led the chief opposition candidates—former minister and Organization of African Unity Secretary General Edem Kodjo and lawyer Yawovi Agboyibo—to drop out of the race before election day and to call for a boycott.
President Eyadéma was unhurt, and the attack and subsequent reaction by the Togolese armed forces resulted in hundreds of deaths, mostly civilians.
In generally free and fair polls as witnessed by international observers, the allied opposition parties UTD and CAR together won a narrow majority in the National Assembly.
Kodjo's government emphasized economic recovery, building democratic institutions and the rule of law and the return of Togolese refugees abroad.
In early 1995, the government made slow progress toward its goals, aided by the CAR's August 1995 decision to end a 9-month boycott of the National Assembly.
However, Kodjo was forced to reshuffle his government in late 1995, strengthening the representation by Eyadéma's RPT party, and he resigned in August 1996.
In June 1999, the RPT and opposition parties met in Paris, in the presence of facilitators representing France, Germany, the European Union, and La Francophonie (an international organization of French-speaking countries), to agree on security measures for formal negotiations in Lomé.
The accord also called for the negotiation of a legal status for opposition leaders, as well as for former heads of state (such as their immunity from prosecution for acts in office).
In addition, the accord addressed the rights and duties of political parties and the media, the safe return of refugees, and the security of all citizens.
President Eyadéma died on 5 February 2005 while on board an airplane en route to France for treatment for a heart attack.
His son Faure Gnassingbé, the country's former minister of public works, mines, and telecommunications, was named president by Togo's military following the announcement of his father's death.
Under international pressure from the African Union and the United Nations however, who both denounced the transfer of power from father to son as a coup, Gnassingbé was forced to step down on 25 February 2005, shortly after accepting the nomination to run for elections in April.
The GPA provided for a transitional unity government whose primary purpose would be to prepare for benchmark legislative elections, originally scheduled for June 24, 2007.
CAR opposition party leader and human rights lawyer Yawovi Agboyibo was appointed Prime Minister of the transitional government in September 2006.
[12] In late 2017, tens of thousands of demonstrators gathered in a series of mass protests to demand the immediate resignation of President Faure Gnassingbe.