What is an opiate antagonist?

Naloxone and naltrexone are commonly used opiate antagonist drugs which are competitive antagonists that bind to the opioid receptors with higher affinity than agonists but