The purpose of this paper is to establish a formal mathematical framework for the electromagnetic wave propagation in an arbitrary cavity. The walls of the cavity are not assumed perfectly conducting and we use the transmission boundary conditions for the tangential fields. Our main tool is the Laplace transform. The focus here is on the modeling and detailed proofs or calculations are not provided.