the enemy of my enemy is my friend saying1 •It is sometimes necessary to cooperate with a person one does not like or agree with, in order to combat a common threat.
the enemy of your enemy is your friend phrase1 •Two parties who have an enemy in common should join forces against it.