When the corresponding retinal locations in the two eyes are presented with incompatible images, a stable percept gives way to perceptual alternations in which the two images compete for perceptual dominance. As perceptual experience evolves dynamically under constant external inputs, binocular rivalry has been used for studying intrinsic cortical computations and for understanding how the brain regulates competing inputs. Converging behavioral and EEG results have shown that binocular rivalry and attention are intertwined: binocular rivalry ceases when attention is diverted away from the rivalry stimuli. In addition, the competing image in one eye suppresses the target in the other eye through a pattern of gain changes similar to those induced by attention. These results require a revision of the current computational theories of binocular rivalry, in which the role of attention is ignored. Here, we provide a computational model of binocular rivalry. In the model, competition between two images in rivalry is driven by both attentional modulation and mutual inhibition, which have distinct selectivity (feature vs. eye of origin) and dynamics (relatively slow vs. relatively fast). The proposed model explains a wide range of phenomena reported in rivalry, including the three hallmarks: (i) binocular rivalry requires attention; (ii) various perceptual states emerge when the two images are swapped between the eyes multiple times per second; (iii) the dominance duration as a function of input strength follows Levelt's propositions. With a bifurcation analysis, we identified the parameter space in which the model's behavior was consistent with experimental results.B inocular rivalry is a visual phenomenon in which perception alternates between incompatible monocular images presented to the two eyes. During binocular rivalry, perceptual experience evolves dynamically while the external inputs are held constant. Binocular rivalry thereby provides an opportunity to gain insights about the intrinsic cortical computations underlying visual perception (1, 2).In conventional models of binocular rivalry, the competition between two percepts has been characterized as mutual inhibition between two populations of neurons selective for each of the two stimuli (3-11). Notwithstanding the differences in their details, these models consider the neural processing underlying binocular rivalry to be an automatic process. These models predict, therefore, that the dynamics of binocular rivalry are influenced mainly by bottom-up sensory inputs.Converging experimental evidence has shown, however, that binocular rivalry also depends on attention (for a review, see ref.12). First, EEG has been used to measure a neural correlate of the perceptual alternations during binocular rivalry when observers pay attention to the rival stimuli (13). However, this rivalry-induced modulation of the EEG signal is largely or entirely eliminated when attention is diverted away from the stimuli (14). Second, behavioral experiments comparing the perceptual cons...