Opiate tolerance occurs when the body becomes accustomed to the effects of an opioid drug and requires higher doses to achieve the same level of pain relief or euphoria. This occurs because the body adapts to the presence of the drug and reduces the number of receptors available for the drug to bind to. As a result, larger doses are needed to achieve the desired effects. Over time, tolerance can lead to physical dependence and addiction. Tolerance to opioids can develop quickly, and regular use can lead to tolerance within a few days to a few weeks.