To pay off a $15 debt to a friend, American mechanic Walter Hunt invented the safety pin in 1849. After selling the patent for $400, Hunt used the proceeds to settle his debt and retained the rest.