Who created the battles during the Crusades?

Generally it was the crusaders invading Muslim territory, but many battles were also prompted by Muslim warriors ambushing the Crusaders