Cotter pins are bent metal pins that are inserted through a hole or slot and then bent back to secure them in place. They are often used to prevent nuts from loosening on bolts and to secure various types of machinery components.