Ion traps use a combination of electric and magnetic fields to confine ions. There are various types of ion traps, including Paul traps, Penning traps, and optical traps. Paul traps use oscillating electric fields, while Penning traps use a combination of static electric and magnetic fields. Optical traps, on the other hand, use laser beams to exert forces on ions.