The term masking refers to immediate responses to stimuli that override the influence of the circadian timekeeping system on behavior and physiology. Masking by light and darkness plays an important role in shaping an organism's daily pattern of activity. Nocturnal animals generally become more active in response to darkness (positive masking) and less active in response to light (negative masking), and diurnal animals generally have opposite patterns of response. These responses can vary as a function of light intensity as well as time of day. Few studies have directly compared masking in diurnal and nocturnal species, and none have compared rhythms in masking behavior of diurnal and nocturnal species. Here, we assessed masking in nocturnal mice (Mus musculus) and diurnal grass rats (Arvicanthis niloticus). In the first experiment, animals were housed in a 12:12 light-dark (LD) cycle, with dark or light pulses presented at 6 Zeitgeber times (ZTs; with ZT0 = lights on). Light pulses during the dark phase produced negative masking in nocturnal mice but only at ZT14, whereas light pulses resulted in positive masking in diurnal grass rats across the dark phase. In both species, dark pulses had no effect on behavior. In the 2nd experiment, animals were kept in constant darkness or constant light and were presented with light or dark pulses, respectively, at 6 circadian times (CTs). CT0 corresponded to ZT0 of the preceding LD cycle. Rhythms in masking responses to light differed between species; responses were evident at all CTs in grass rats but only at CT14 in mice. Responses to darkness were observed only in mice, in which there was a significant increase in activity at CT 22. In the 3rd experiment, animals were kept on a 3.5:3.5-h LD cycle. Surprisingly, masking was evident only in grass rats. In mice, levels of activity during the light and dark phases of the 7-h cycle did not differ, even though the same animals had responded to discrete photic stimuli in the first 2 experiments. The results of the 3 experiments are discussed in terms of their methodological implications and for the insight they offer into the mechanisms and evolution of diurnality.