How to precisely control and efficiently utilize the physical processes such as high temperature, high pressure, and shockwaves during the collapse of cavitation bubbles is a focal concern in the field of cavitation applications. The viscosity change of the liquid will affect the bubble dynamics in turn, and further affect the precise control of intensity of cavitation field. This study used high-speed photography technology and schlieren optical path system to observe the spatiotemporal evolution of shockwaves in liquid with different viscosities. It was found that as the viscosity of the liquid increased, the wave front of the collapse shockwave of the cavitation bubble gradually thickened. Furthermore, a high-frequency pressure testing system was used to quantitatively analyze the influence of viscosity on the intensity of the shockwave. It was found that the pressure peak of the shockwave in different viscous liquid was proportional to Lb (L represented the distance between the center of bubble and the sensor measuring point), and the larger the viscosity was, the smaller the value of b was. Through in-depth analysis, it was found that as the viscosity of the liquid increased, the proportion of the shockwave energy of first bubble collapse to the maximal mechanical energy of bubble gradually decreased. The proportion of the mechanical energy of rebounding bubble to the maximal mechanical energy of bubble gradually increased. These new findings have an important theoretical significance for the efficient utilization of ultrasonic cavitation.