How do you properly dispose of medication?

A fellow caregiver asked...

What is the proper or legal way to dispose of unused medications including opiates? Are there specific federal or DEA rules or laws which require that unused medications be returned to the doctor if the prescription was filled at a pharmacy and paid for by the patient? Should unused medications ever be returned directly to a doctor? Thank you.