The Brazil nut effect is a phenomenon in granular materials where larger particles rise to the top when the mixture is shaken or agitated. This counterintuitive sorting process occurs due to differences in particle size, density, and the dynamics of granular convection and percolation.