In this paper, exact solutions of velocity and stresses are obtained for the magnetohydrodynamic (MHD) flow of a Maxwell fluid in a porous half space by the Laplace transform method. The flows are caused by the cosine and sine oscillations of a plate. The derived steady and transient solutions satisfy the involved differential equations and the given conditions. Graphs for steady-state and transient velocities are plotted and discussed. It is found that for a large value of the time t, the transient solutions disappear, and the motion is described by the corresponding steady-state solutions.