All of these factors played significant roles in the arms race and heightened tensions leading up to World War I. Imperialism led to competition for colonies and resources, nationalism fueled rivalries and desires for dominance, economic competition strained relations between countries, and alliances created a complex web of commitments that escalated conflicts.