The Gentlemen’s Agreement with Japan was an informal agreement made in 1907 between the United States and Japan to limit Japanese immigration to the U.S. This arrangement arose from rising anti-Japanese sentiment in the U.S., particularly in California, and aimed to ease tensions between the two nations while addressing domestic concerns about immigration and labor competition during a time of economic change.