Billy the Kid was 21 years old when he died. He was shot and killed by Sheriff Pat Garrett on July 14, 1881, in Fort Sumner, New Mexico.