In this paper, a frequency-selective structure based on guided-mode resonance effects in all-dielectric waveguide gratings is demonstrated theoretically and verified experimentally. Reflection (band-stop) filters with high efficiency, extended low-side-band reflection, and symmetric line shapes are designed by embedding gratings in layered antireflection structures. Reflection filter examples employing common dielectric materials illustrate linewidth control by grating modulation. An additional mechanism for linewidth control is demonstrated with phase-shifted gratings. Double-line reflection filters are obtained in structures containing two gratings with different grating periods. High-efficiency transmission (bandpass) filters are demonstrated using multilayer waveguide gratings in a high-reflectance thin-film configuration with a single grating in the center layer bordered by dielectric mirrors composed of high/low quarter-wave layers. Single-layer and multilayer waveguide gratings operating as reflection and transmission filters, respectively, were built and tested in the 4-20-GHz frequency range. The presence of guided-mode resonance notches and peaks is clearly established by the experimental results, and their spectral location and line shape is found to be in excellent agreement with the theoretical predictions. Index Terms--Bandpass filters, dielectric waveguides, frequency-selective surfaces, gratings, guide-mode resonance effect, periodic structures, waveguide filters.