Tilting at windmills is an English idiom which means "attacking imaginary enemies", originating from Miguel de Cervantes' novel Don Quixote.