The wave runup height is one of the most important parameters for affecting the design of coastal structures such as dikes, revetments, and breakwaters. In this study, SWASH (Zijlema et al., 2011), a non-hydrostatic pressure numerical model, was used to analyze the effect of reducing The wave runup height of solitary waves by submerged and floating rectangular obstacles. It was confirmed that the SWASH model reproduces the propagation, breaking, and runup of solitary waves quite well. In addition, it was confirmed that the wave deformation of the solitary wave by submerged and floating rectangular obstacles was well reproduced. Finally, we conducted an examination of the effect of reducing the runup height of submerged and floating rectangular obstacles. Reduced runup heights are calculated and the characteristics of runup height reduction according to the dimensions of the obstacle were analyzed. The energy attenuation effect of the floating obstacle is greater than the submerged obstacle, and it is shown to be more effective in reducing the runup height.