Bottom line: Victory in spiritual warfare is impossible without genuine worship of God.
Following God's calling of Gideon to deliver the nation from Midian's control, Gideon wants to know that he is truly being called and commissioned by God. Before Gideon goes to war, he worships God with a sacrifice. In the text (Judges 6:17-32) we see the topic of worship over and over. Gideon offers an offering (sacrifice) to God. Gideon builds an altar to the Lord and names it Jehovah-Shalom. Gideon destroys the altar of Baal. Gideon builds a new altar to God and sacrifices a bull to God.
In these four movements of worship we see several principles or lessons that we can learn from Gideon:
1) Worshipping God precedes warring with the enemy
2) The peace of God is preparation for the conflict
3) The public battle is preceded by personal victory
4) God proves us to be faithful and proves His own faithfulness to us
Deliverance from the troubles of our own making is impossible until we destroy the altars of false worship that led us to the trouble in the first place.