Morphine and codeine, two of the most common opioids, are widely used in the clinic for different types of pain. Morphine is one of the most potent agonists for theμ-opioid receptor, leading to the strongest analgesic effect. However, due to their association with serious side effects such as respiratory depression, constriction, euphoria, and addiction, it is necessary for derivatives of morphine and codeine to be developed to overcome such drawbacks. The development of analgesics based on the opiate structure that can be safe, orally active, and non-addictive is one of the important fields in medicinal chemistry. Over the years, morphine and codeine have undergone many structural changes. The biological investigation of semi-synthetic derivatives of both morphine and codeine, especially morphine, shows that studies on these structures are still significant for the development of potent opioid antagonists and agonists. In this review, we summarize several decade-long attempts to synthesize new analogues of morphine and codeine. Our summary placed a focus on synthetic derivatives derived from ring A (positions 1, 2, and 3), ring C (position 6), andN-17 moiety.