For several centuries, opium addiction has been a social problem all over the world. It has been prevalent in Iran from the Safavid era (1501-1736 A.D). During this period, Hakim Imad al-Din Mahmud ibn-Mas'ud Shirazi (1515-1592 A.D), also known as Imad was one of the Persian physicians who wrote one of the earliest books in the field of opium and addiction (called Afiounieh) in history. In this book, he introduced two sustained release rectal (suppository) and oral (pill) dosage forms for Muslim addicts who fast in the month of Ramadan. He aimed to formulate them for these people so that they could keep fasting by using the slow release drugs. In these formulations, his innovation has important impacts in the history of both addiction and pharmaceutical sciences.