Walter Hunt patented a pin which includes a simple spring mechanism and a clasp. He sold his invention for $400. However, safety pins existed prior to this patent. They were already patented in Great Britain. During the emergence of punk rock in the late seventies, safety pins became associated with the genre.