the enemy of your enemy is your friend

Phrase

 * 1) Two parties who have an enemy in common should join forces against it.