During the Spanish American War peasants played an essential role in providing the revolutionary forces in Cuba with food, intelligence, and recruits, for their struggles against some 200,000 Spanish occupying troops. The War for Independence lasted from 1868-1898. Rural peasants contributed rice, produce, livestock for meat, and dairy products to the rebel army. As a result Spanish officers targeted them and relocated them to Spanish military garrisons.