AbstractThe response spectrum is generally adopted in the seismic design to represent the seismic fortification level, but the structural dynamic analysis requires the ground motions as an input. However, ground motions generated by the traditional spectral matching methods do not have site‐related physical backgrounds for the target site. In this study, a physics‐based spectral matching (PBSM) method is developed to generate fully site‐related broadband ground motions (i.e., the generated ground motions have real physical backgrounds for the target site, including the source process, propagation path, and local site conditions) that are compatible to the target spectrum. In this method, the three‐dimensional (3D) numerical model around the target site is constructed to calculate the strain Green's tensors of all potential source locations using adjoint simulations. The variable space dimension of the seismic source is significantly reduced by applying the self‐similar feature of the multidimension source model, so that the optimization algorithm can be used to search for the rupture process that generates the physics‐based and spectrum‐matched ground motions (abbreviated to PBSM ground motions). The proposed method is applied to the Xiluodu dam in China. Compared with the traditional techniques, the generated ground motions have fully site‐related physical backgrounds and are compatible to the target spectrum. Additionally, as this method generates broadband ground motions based on the deterministic rupture process, any features of ground motions, such as large velocity pulses, can be taken into account throughout the optimization process. This study introduces the deterministic physical backgrounds of earthquakes to performance‐based seismic design and analysis. The proposed method may have a significant application potential in earthquake engineering.