Passage: Trepanation, the deliberate drilling of holes into a skull, was practiced as early as 7,000 BCE. While sometimes people survived, many would have died from the procedure due to infection. It was believed to work via "letting evil spirits escape". William Harvey recommended trepanation as a treatment for migraines in the 17th century.While many treatments for migraines have been attempted, it was not until 1868 that use of a substance which eventually turned out to be effective began. This substance was the fungus ergot from which ergotamine was isolated in 1918. Methysergide was developed in 1959 and the first triptan, sumatriptan, was developed in 1988. During the 20th century with better study design effective preventative measures were found and confirmed.

Question: What year was ergotamine isolated from fungus ergot?
1918