Answer:
Don Quixote battles the windmills because he believes that they are ferocious giants. He thinks that after defeating them -- all "thirty or forty" of them! -- he will be able to collect the spoils and the glory as a knight. However, when he charges the "giants," his lance gets caught in a sail.
Explanation: