In this work, we have constructed exact geometries which describe magnetized matter within General Relativity, specifically in an almost-plane-symmetric case. Although the use of this geometry imposes some constraints on the components of the energy–momentum tensor, it allows to describe some physically interesting situations in which the magnetized vacuum is relevant.