The technique involves a focused ion beam (FIB) that directs ions onto the substrate. When these high-energy ions collide with the surface atoms, they transfer energy, causing the atoms to be ejected. This results in the controlled erosion of the material, making ion milling an effective method for shaping and modifying nanostructures.