An optical sensor is designed to support the Fano effect based on a compound resonant waveguide grating (CRWG). The transmission spectra of the CRWG are investigated by utilizing a theoretical method that combines the temporal coupled mode theory with the eigenmode information of the grating structure. The theoretical results, which are observed to agree closely with those acquired by rigorous coupled-wave analysis, show that the linewidth of the transmission spectrum decreases upon increasing the distance between the grating strips, and the central resonance frequency decreases as the refractive index of the analyte increases. Here, the proposed CRWG structures will find potential uses in optical sensing.OCIS codes: 050.6624, 130.6010. doi: 10.3788/COL201715.030502.High-sensitivity label-free biosensors have been widely used in many fields, for purposes such as medical diagnosis, environmental monitoring, and chemical detection. Label-free biosensors based on resonant structures have been developed rapidly during recent years because they are simple to fabricate and exhibit excellent optical resonance properties [1,2] . Several types of integrated optical devices have been employed as label-free sensors, such as photonic crystals [3] , asymmetric plasmonic hexamers [4] , and high-contrast-gratings [5] . Recently, resonant waveguide gratings (RWGs) have been demonstrated as an optical sensor by utilizing guided-mode resonance. Different from surface plasmon resonance (SPR) sensors [6] and waveguide mode sensors [7] , RWG sensors can be easily integrated without special separate coupling, such as prism coupling or lensed fiber coupling. RWG sensors have drawn much attention. For instance, Wang et al. demonstrated a refractive index sensor using an RWG [8] , and Zaytseva et al. developed a medium-throughput microfluidic biosensor system for whole-cell sensing by employing an RWG structure [9] . Zheng et al. demonstrated theoretically and numerically an RWG sensor with a sharp Fano resonance using double-sided dielectric gratings [10] . However, it is difficult to realize the sharp linewidths of the transmission spectra for optical sensing using a singlelayer symmetrical RWG. In order to solve this problem, we choose an asymmetrical RWG. The leaky modes of the asymmetrical RWG can be confined in this structure, which allows weak coupling to the sample liquid region.RWGs are often designed to support Fano resonances using rigorous electromagnetic methods [11][12][13] , which generally originate from the interference between direct and resonance-assisted pathways. Although accurate simulation results have been obtained, most of these methods are mathematically complex and do not provide intuitive explanations of the resonant mechanism of RWG; they are also time consuming. In order to overcome this problem, we previously proposed a theoretical model that can be employed to analyze the transmission spectra of RWG structures with Fano resonances [14] . This model combines the temporal coupled-mode theory (TCMT) with the...