den Teufel mit dem Beelzebub austreiben

Etymology
lit. 'to drive out the Devil by Beelzebub'. Based on Matthew 12:24-27 (and parallels).

Verb

 * 1) to ally oneself to or use an evil force in order to fight another