The following year, Perry returned with seven ships and forced the "shōgun" to sign the "Treaty of Peace and Amity", establishing formal diplomatic relations between Japan and the United States, known as the Convention of Kanagawa (March 31, 1854). Within five years Japan had signed similar treaties with other western countries. The Harris Treaty was signed with the United States on July 29, 1858. These treaties were widely regarded by Japanese intellectuals as unequal, having been forced on Japan through gunboat diplomacy, and as a sign of the West's desire to incorporate Japan into the imperialism that had been taking hold of the continent. Among other measures, they gave the Western nations unequivocal control of tariffs on imports and the right of extraterritoriality to all their visiting nationals. They would remain a sticking point in Japan's relations with the West up to the start of the 20th century.