When a bacteria, virus, or other microorganism mutates (changes form) and becomes resistant to a drug that was previously effective. Drug resistance can be a cause of HIV treatment failure.