The brain continuously produces internal activity in the absence of afferently salient sensory input. Spontaneous neural activity is intrinsically defined by circuit structures and associated with the mode of information processing and behavioral responses. However, the spatiotemporal dynamics of spontaneous activity in the visual cortices of behaving animals remain almost elusive. Using a custom-made electrode array, we recorded 32-site electrocorticograms in the primary and secondary visual cortex of freely behaving rats and determined the propagation patterns of spontaneous neural activity. Nonlinear dimensionality reduction and unsupervised clustering revealed multiple discrete states of the activity patterns. The activity remained stable in one state and suddenly jumped to another state. The diversity and dynamics of the internally switching cortical states would imply flexibility of neural responses to various external inputs.