Middle East Christian Crusades

Based on what we read, what really caused the Crusades? Was it a Just War? What was the true motivation of those who engaged in those wars? Were they looking to gain material interests including looting or they sought salvation and carrying out religious duties? Were the Crusades really unavoidable?