like the plague

Like the plague is the phrase used when you want to ignore or keep away from someone or something. The plague was an older illness that was very deadly and pretty much fatal for anyone who got it, so you would certainly want to avoid getting it. If you want to avoid something like the plague, you want to avoid it totally and completely and are willing to do pretty much anything to stay away from this thing or person.