Ergot is obtained from Claviceps. It is a genus of fungi that parasitizes various grasses and cereals, particularly rye. Certain species of Claviceps produce alkaloids, including ergotamine and ergometrine, which can cause ergotism when consumed by humans or animals.