This paper describes the dynamic analysis of soil-structure interaction by using the spectral element method (SEM). This numerical method is a powerful numerical technique suited for the dynamic tasks. In this case, numerical methods with highly developed computer technique become very efficient to analyze complex problems. The partial differential equation governing the motion is derived and solved by using SEM. Thus, the corresponding solutions are the eigenvalues of the problem, so natural frequencies are tabulated for the first three modes of vibration. This numerical analysis treats the effect of: (a) the modal analysis with and without the elastic medium, (b) the influence of the interaction between the beam and soil, (c) the influence of the soil properties on the dynamic response, and (d) the influence of the non-classical boundary conditions. The obtained results of these effects are presented and commented.