Leaves modified into thorns, development of spiny margins on the leaves. Many plants produce and store chemicals that make the herbivore sick.
eg: calotropis produces highly poisonous cardiac glycosides. Some other chemical substances like nicotine, quinine, opium etc are produced by plants and provide defence against grazing animals.