'devil') is a pejorative Chinese slang term referring to foreigners, with a history of xenophobic connotations.
[2] Starting with the arrival of European sailors in the sixteenth century, foreigners were often perceived in China as "uncivilized tribes given to mayhem and destruction".
In northern parts, the term 'western devil' (西洋鬼子 xiyáng guǐzi) was used.
[4] The character gui (鬼) can have negative connotations itself without the zi (子) suffix.
[1] Local expressions towards the Japanese during their occupation of China during World War II also used gui.