What is the meaning of [A plague on both your houses]

A frustrated curse on both sides of an argument.

From Shakespeare’s Romeo and Juliet, 1592:

MERCUTIO:
I am hurt.
A plague o’ both your houses! I am sped.
Is he gone, and hath nothing?