The boer war was sparked by

Athe desire of the british to take cape colony from the dutch.
Bthe discovery of gold and diamonds on boer-held lands.
Cthe migration of boers into zulu territory.
Dthe migration of boers into british territory.