The tamper is used to compress the ground coffee in the portafilter. The tamper's size and shape determine the pressure applied during tamping.