The immediate cause of the rebellion was the introduction of the Enfield rifle, which used cartridges greased with cow and pig fat. This offended both Hindu and Muslim soldiers, as cows are sacred to Hindus and pigs are considered unclean by Muslims.