Because of its shelf life, Spam was a popular canned food served to the military during World War II. There is a great Time magazine article that outlines the full timeline of Spam's history and popularity over the years.