Most of the underground rock formations are anisotropic, and the study of the dynamic response of anisotropic geology containing internal defects is necessary for the development of underground tunnels or caverns. In this paper, the wave function expansion method, the complex function method, and the Green's function method are used to solve the problem of scattering of SH waves in anisotropic rock in the presence of elliptical cavity and type-III crack. Boundary conditions for solving the problem are given using the conformal transformation method, and crack in the medium is constructed using the "crack cutting" technique. The scattered wave field generated by the crack is constructed based on the Green function method, and the displacement and stress fields in the model are obtained by the wave field superposition principle in the case of SH wave incidence. The dynamic stress concentration factor (DSCF) on the boundary of the elliptical cavity and the dynamic stress intensity factor (DSIF) at the crack tip are derived. The correctness of the method is verified by degenerating it to a classical analytic solution. Finally, the effects of the anisotropic strength of the rock mass, the dimensions of the cavern, and the incidence angle and wave number of the SH wave on the DSCF and DSIF are analyzed by numerical calculations in both the frequency and time domains. The results show that the anisotropy of the rock mass, the shape of the cavern and the defects of the surrounding medium have a great influence on the dynamic response of the underground structures, which should be given enough attention in the development and design of deep underground caverns or tunnels.