<human>:  How did John McCain die?
<bot>: John McCain died of brain cancer. He was 81 years old. He had been diagnosed with brain cancer in 2017, and he had been receiving treatment for the disease since then.