Language:
Free Online Dictionary|3Dict

認敵為友

Source : CEDICT

to mistake a foe for a friend/to go over to the enemy (idiom)