modulations, including planar lenses, [11-13] holograms, [14,15] and ultrathin cloaking, [16-18] have been realized. In the acoustic systems, the metasurfaces [19-26] have also captured the fascination of researchers due to their great potential in practical applications, such as acoustic lenses, acoustic holograms, [27-31] cloaking, [32,33] vortex, and self-bending beams. [34-37] By capturing additional momenta from the metasurfaces, the incident wave can be deflected into the desired direction based on the momentum matching condition. However, the acoustic wave becomes evanescent when the total momentum of the output waves exceeds that in air. Thus, there exists a fundamental limit of critical incident angles for the wavefront modulations based on the GSL. [1] Moreover, recent researches emphasize inherent limitations of the efficiency in the design of metasurface structures, which is due to the fact that the phase-gradient metasurfaces usually neglect impedance matching constraints and thus cannot modulate all sound energy to the desired direction, with part of the incident energy scattering into unwanted parasitic diffraction. [38,39] Beyond that, the modulation efficiency gradually decreases as the angle of modulated waves deviates from the specular reflection, and thus there exists a clear trade-off between efficiency and extreme steering-angle modulation in conventional metasurfaces. To overcome the challenges above, another type of planar artificial structures has been introduced for wave modulation with high efficiency, named as metagratings. [40-44] The metagratings are usually periodic planar structures with unit cells composed Metagratings have provided great flexibility for controlling wave propagation by suppressing or enhancing diffraction of periodic unit cells or supercells with high efficiency. On the other hand, to achieve complex wavefront, modulations usually require phase profiles of the metagratings to be arbitrary. However, due to lack of a general theoretical framework, such high-efficiency aperiodic metagratings remain elusive in reality. Here, a class of aperiodic metagratings based on the extension of the Snell's law that involves both the diffraction of unit cells and the aperiodic phase modulation of metagratings in acoustics is proposed and experimentally demonstrated. The proposed aperiodic acoustic metagratings can be used to not only efficiently manipulate sound refraction or reflection for arbitrary incidence angle without the restriction of critical angles, but also to design complex wavefront modulations that enable high-performance multifunctional devices. As a proof of concept, two types of multifunctional acoustic lenses that function completely differently by adjusting the distance between two aperiodic metagratings are experimentally realized. This work provides a new pathway toward complex modulations of the wavefront and diffraction for classical waves with high efficiency.