Foreign nationals are individuals who are citizens or subjects of a country other than the one in which they reside or are present. In the context of the Treaty of Nanjing, foreign nationals primarily referred to British citizens and other foreigners who gained special rights and privileges within China, significantly affecting China's sovereignty and its relationship with foreign powers.