Any improper disposal of trash is illegal and violators can be prosecuted. Numerous Pennsylvania agencies enforce laws addressing improper disposal of trash. The Pennsylvania General Assembly created and enacted our littering and dumping laws. County and municipal governments create and enact ordinances that are specific within their local boundaries.