What does Tilting At Windmills Mean?

The phrase ’tilting at windmills’ comes from the novel Don Quixote by Miguel de Cervantes. It means fighting battles in life that can’t be won or attacking enemies where none exist.