Oni, according to folklorists like Noriko T. Reider and Kazuhiko Komatsu, oni were representative of the oppressed other of society, such as outcasts, foreigners, and those that defied imperial and central authority.
Source: Japanese Demon Lore, Noriko T. Reider.