Fentanyl can be produced legally for medical purposes under strict regulation. However, illicitly manufactured fentanyl is often associated with the illegal drug trade and can be produced in clandestine laboratories. Illicit fentanyl and its analogs can come from various sources and may be mixed with other drugs, increasing the risk of overdose.