Grain boundary pinning occurs when foreign particles, such as second-phase particles or impurities, obstruct the movement of grain boundaries. These particles exert a pinning force that counteracts the driving force for grain boundary migration. The effectiveness of pinning depends on factors like particle size, distribution, and volume fraction.