On September 5, 1795, when the two countries signed the Treaty of Amity and Peace, a few years after the official recognition of the independence of the young American Republic by the State of Algeria (1783), Algeria was among the first countries that recognized the independence of the United States.[2]