In this paper, we explore the electromagnetic transmission through a vertical metallic nanoslit with a horizontal microcavity. The introduction of microcavity gives rise to the changes of slit transmission spectrum in the number and amplitude of transmission peak and dip, owing to the electromagnetic coupling between slit and microcavity. The transmission through the slit with microcavity strongly depends on whether the isolated slit is in resonance or not, and the microcavity resonance is an additional factor that influences the transmission. ...