Codeine is used to relieve mild to moderate pain. It belongs to the group of medicines called narcotic analgesics (pain medicines). This medicine acts on the central nervous system to relieve pain. When it is used for a long time, it may become habit-forming, causing mental or physical dependence. Physical dependence may lead to withdrawal side effects if treatment is stopped suddenly. However, severe withdrawal side effects can usually be prevented by gradually reducing the dose over a period of time before treatment is stopped completely.