Turks are known for long influencing Sufism in Bangladesh. Many Turks accompanied Bakhtiyar Khalji during his conquest of Bengal and permanently settled there. During the Khalji dynasty's rule, many Turks were given high ranks and the building of a strong Muslim society was encouraged. The Turks established many mosques, madrasas and khanqahs. Ghiyasuddin Iwaj Shah constructed forts, highways and voyage fleets. He strategically innovated methods of flood control. Shamsuddin Ilyas Shah is notable for uniting the whole of Bengal into one single Sultanate in 1352. The Turkish rule ended in 1487 after the death of the final Sultan of the Ilyas Shahi dynasty, Jalaluddin Fateh Shah. However, many Turks continued to live in Bengal and merged with its society.
Modern
During the 1971 Bangladesh Liberation War, relations were very complicated due to Turkey's supports for its close ally, Pakistan. However, after Pakistan was defeated and the establishment of Bangladesh, Turkey recognised Bangladesh as a country. In 2016, the diplomatic relationship between two countries became complex when Bangladesh denounced Turkey's consecutive requests to free several Bangladeshi Jamaat-e-Islami leaders who have been convicted for war crimes during Bangladesh Liberation War by the International Crimes Tribunal in Bangladesh and eventually executed. Following the execution of the Jamaat leader Motiur Rahman Nizami, Turkey withdrew its ambassador to Bangladesh. However, after Bangladesh's condemnation of the coup d'état attempt to overthrow the Erdogan government, relations began to improve. Consequently, Ankara sent a new ambassador to Dhaka. After arrival, the new Turkish ambassador remarked, "Bangladesh had helped Turkey by expressing its support to Erdogan’s government after the failed coup attempt." The ambassador commented that the relations between the two countries have become normal. The ambassador also expressed Turkey's willingness in helping Bangladesh to control militancy in the country. During the Rohingya crisis, where the Muslim Rohingyas were being expelled from Myanmar, Turkey donated millions of dollars to the government of Bangladesh in order to aid the Rohingyas who are settling in Chittagong. In September 2017, First Lady Emine Erdogan visited and helped provide relief in the shelters of the Rohingyas and promised more co-operation and aid to Bangladesh.
Bangladesh and Turkey are among each other's key trading partners. The bilateral trade between the two countries is worth more than $1 billion. Bangladeshi export items to Turkey have been dominated by apparel products. Since 2012, Bangladesh and Turkey have been in talks to sign a free trade agreement, but signing of the agreement is halted due to the complications relating to Turkey's bid for accession to the European Union. The shipbuilding industry of Bangladesh has also been identified as a potential sector for Turkish investment. Bangladesh and Turkey have signed a joint protocol on trade and investment in 2012. The Bangladesh-Turkey Joint Economic Commission has been holding biennial meetings to discuss the ways for increasing bilateral trade and investment.
Defense cooperation
In 2013, Turkey supplied Otokar Cobra light armored vehicles to the Bangladesh Army. Bangladesh signed an agreement with Turkey on military training, education and joint cooperation between forces of both nations on 10 March 1981 at Dhaka. As per agreement Turkey's Naval special forces trained Bangladesh Navy's special forces Special Warfare Diving and Salvage.