From Han through Tang times China called Japan
倭. It later took on a contemptuous tone, surviving mainly in
倭寇 (the Ming-era Japanese pirate raiders). Because of that history the word is offensive today and is not used as a neutral term for Japan or Japanese people.