The cow protection movement has been a religious and political movement aiming to protect the cows whose slaughter has been broadly opposed by Hindus, Buddhists, Jains and Sikhs. While the opposition to slaughter of animals including cows has extensive and ancient roots in Indian history, the term refers to modern movements dating back to the colonial era British India. The earliest such activism is traceable to Sikhs of Punjab who opposed cow slaughter in the 1860s. The movement became popular in the 1880s and thereafter, attracting the support from the Arya Samaj founder Swami Dayananda Saraswati in the late 19th-century, and from Mahatma Gandhi in early 20th-century.
The cow protection movement gained broad support among the followers of Indian religions particularly the Hindus, but it was broadly opposed by Muslims. Numerous cow protection-related riots broke out in the 1880s and 1890s in British India. The 1893 and 1894 cow killing riots started on the day of Bakri-id, a Muslim festival where animal sacrifices are a part of the celebration. Cow protection movement and related violence has been one of the sources of religious conflicts in India. Historical records suggest that both Hindus and Muslims have respectively viewed "cow protection" and "cow slaughter" as a religious freedom.
The cow protection movement is most connected with India, but has been active since the colonial times in predominantly Buddhist countries such as Sri Lanka and Myanmar.
According to Nanditha Krishna, the cow veneration in ancient India "probably originated from the pastoral Aryans" in the Vedic era, whose religious texts called for non-violence towards all bipeds and quadrupeds, and often equated killing of a cow with the killing of a human being especially a Brahmin. The hymn 10.87.16 of the Hindu scripture Rigveda (~1200–1500 BCE), states Nanditha Krishna, condemns all killings of men, cattle and horses, and prays to god Agni to punish those who kill.