Artificial defects embedded in periodic structures are important foundation for creating localized states with vast range of applications in condensed matter physics 1 , photonics 2,3 and acoustics 4 . In photonics, localized states are extensively used to confine and manipulate photons [5][6][7][8][9][10][11] . Up to now, all the proposed localized states are reciprocal and restricted by time reversal symmetry. Consequently, localization is bidirectional and photons at the allowed passband in the otherwise forbidden stop band are confined irrespective of the direction of incident beam. In this report, by embedding a single defect in a one-dimensional spatiotemporally modulated photonic lattice, we demonstrate that it is possible to have localization of photon only in one direction. In a spatiotemporally modulated photonics lattice, a time dependent potential generates an effective magnetic biasing, which breaks the reciprocity 12 . Moreover, in such moving lattices the dispersion relation obtains a shift depending on the direction of effective magnetic biasing. A static defect synthesized in a temporally modulated lattice will generate a spatial localization of light in the bandgap. However, due to the shift of the bandgap the localization occurs in different frequencies depending on the direction of incident field. We envisage that this phenomenon might has impact not only in photonics but also other areas of physics and engineering such as condensed matter and acoustics, opens the doors for designing new types of devices such as non-reciprocal traps, sensors, unidirectional tunable filters, and might result in unconventional transports such as unidirectional lasing. Despite its applications, our proposal, namely a defect sate in a driven system, can be considered as a pedagogical example of Floquet problem with analytical solution.Formation of the band structure is an intriguing feature of the periodic systems. Many physical phenomena in the periodic systems are associated with different properties of their band structures. The concept of periodicity gives birth to the photonic crystals 13 where the dielectric constant in the structure is altered periodically. In a photonic crystal, guided modes are separated by the photonic bandgaps in dispersion relations. Photon propagation is forbidden or strongly suppressed in the photonic bandgap. Consequently, by engineering the electric permittivities one can achieve structures with all unusual band diagrams to guide and mould the flow of light 14,15 . Insertion of a defect in the periodic systems generates a high Q resonant mode in the gap which leads to spatial localization of wave functions in the vicinity of the defect 16,17 . The high Q modes are good candidates for designing photonic crystal lasers [5][6][7]18 .Embedding a pumped gain medium as a non-Hermitian defect in the photonic crystal results in the concentration and amplification of the light until it reaches to the threshold and starts to lase. Recent advancement in the non-Hermitian systems extended the...