Modulating electromagnetic fields is a key issue in modern optics. In this study, a depolarizer is considered for modulating electromagnetic fields. The depolarizer under investigation is a polarizer array in which the transmission axis of each cell is randomly oriented in a spatially correlated manner. This arrangement whose correlation can be tailored differs from both ordered and completely disordered structures. The optical properties-such as the degree of polarization (DOP) and the degree of coherence (DOC)-of electromagnetic fields behind the depolarizer are rigorously calculated using the probability density method. We find that the depolarizer induces changes in the statistical properties of the incident beam. In particular, the correlation among the random transmission axis of polarizer cells influences both the DOC and the DOP behind the depolarizer. Furthermore, the depolarizer is simulated using the Monte Carlo method, and the simulation results are in good agreement with the analytical findings. Our results may have applications in the design of devices for modulating electromagnetic fields.