An optically tunable and rewritable liquid crystal (LC) diffraction grating cell has been revealed that consists of an optically active and an optically passive alignment layer. The grating profile is created by confining the LC director distribution in alternate planar and twisted alignment domains by means of photoalignment of the LCs. The proposed grating is optically tunable for diffractive and nondiffractive states with a small response time that depends on the exposure energy and LC parameters. In addition, the grating can be erased and rewritten for different diffracting characteristics. Another approach is to utilize the natural diffracting ability of the chiral LCs [12]. Such gratings are electrically tunable but cannot be tuned optically [12,13]. In recent years some reports dealing with optical tunability of dye-doped organic materials have been written [14]. Confined complex structures such as polymer-LC-polymer-slide (PLCPS) gratings containing azo compounds show optical switching times of 0.5 s at the irradiance of 245 mW∕cm 2 and diffraction efficiencies (DEs) up to 85% [15]. In another report, a 90% DE and switching time of 0.2 s (at the irradiance of 54 mW∕ cm 2 ) were reported for PLCPS with photosensitive LC [16]. Most of these reports include dye-doped LC for a photopolymerizable mixture for recording the grating. However, azo dyes, because of their chemical instability, are not stable in the LC mixture, and therefore the efficiency of these devices is highly limited and they manifest a rather complex fabrication procedure [17]. Another approach, based on a polydimethylsiloxane periodic microstructure on a glass substrate, separated by a thin LC film, with a DE of 35% and switching time of 145 s at the irradiance of 600 mW∕cm 2 , has been reported [18]. Other than LC, a metamaterial [19] fabricated by encapsulating photochromic solution in nano-holes of polycarbonate has also been proposed for fabricating optically tunable gratings [4]. The interference pattern by the green laser was used to write the grating profile, whereas it can be erases by UV irradiation [20,21]. However, the technology is restricted by the large switching time of ∼30 s (at an irradiance of 300 mW∕cm 2 ). Recently, we have disclosed a relatively easier and more reliable method to fabricate electrically tunable gratings, by defining the LC director in alternate alignment domains of alternate planar (PA) and twisted (TN) alignments by means of photoalignment [22]. Moreover, among all of these strategies, patterned photoalignment has been demonstrated to be efficient [11][12][13].In this article, we present an optically tunable LC grating based on PA and TN alignment domains. The blue light (λ 450 nm) can be used to tune the diffractive and nondiffractive states. Such gratings can also be erased and rewritten for different grating vectors. Thus, they could find several applications.The optically tunable and rewritable (OTRW) LC cell consists of two substrates with different aligning materials, one of which is optically pas...