The Gentleman's Agreement with Japan was a secret agreement between the two nations over how the Japanese were being treated in the US. The race was being mistreated because of their large numbers of immigrants, and Japan saw this unjust treatment and came to an agreement with the US that they would not send as many immigrants as long as the US gave fair treatment, equality, and rights to those immigrants. According to the United States' 1907 Gentleman's Agreement with Japan, Japanese immigrants would be given equality, rights, and just treatment.