In British English, waste food and other unwanted things that you throw away are called rubbish.
Illegal dumping of household rubbish was very common.
In American English, waste food is called garbage and other things that are thrown away are called trash.
There were rotting piles of garbage everywhere.
They dumped their trash on the street.