The shock interaction of a spherical rigid body with a spherical cavity is studied. This nonstationary mixed boundary-value problem with an unknown boundary is reduced to an infinite system of linear Volterra equations of the second kind and the differential equation of motion of the body. The hydrodynamic and kinematic characteristics of the process are obtained Introduction. Recently, it has been experimentally proved that it is possible to create underwater vehicles based on supercavitation as a new physical principle of motion of bodies in water [14][15][16]24]. A supercavitating body is fully enveloped by a gas bubble, supercavity, and moves inside it at speeds commensurable with the speed of sound in water. Supercavitation arouses considerable interest of researchers. Recent results on supercavitation can be found in, e.g., [18,19].One of the challenges regarding supercavitation is to ensure stable motion of a body in a cavity [12,[14][15][16]24]. Only the nose of a supercavitating body is in contact with the surface of the cavity. The drag exerted by water on the body within the contact region generates an overturning moment about the body's center of mass, making supercavitation unstable. This instability causes lateral impacts of the body against the surface of the cavity, which strongly affects the behavior of the body. This is why study into the impact of the body on the cavity surface is of importance.The supercavitation of a cylindrical body in a cylindrical cavity was studied in [5,22] and [8,19] considering the liquid to be incompressible and compressible, respectively. The hydrodynamic and kinematic loads (plane problem) were determined there.The motion of a spherical body in a spherical cavity (axisymmetric problem) was studied in a similar way. However, many scientists who studied axisymmetric cavities were mainly interested in their geometry, including the relationships between the cavity length and width, between the cavitation number and the body dimensions, and between the body length and the cavitation number [4,11].A spherical body's penetration of the surface of a spherical cavity in a compressible liquid was studied in [9, 20] and the hydrodynamic and kinematic characteristics of the process were determined there. In [9], an axisymmetric problem was formulated and its asymptotic solution was found for the initial stage of the process in the case of an infinitesimal air gap (the body and the cavity have the same transverse dimensions).In [20], a general problem formulation for an arbitrary air gap (a mixed nonstationary initial-boundary-value problem with an unknown boundary varying with time) was given, infinite governing systems of Volterra equations of the second kind were derived, and asymptotic solutions were obtained for the cases of small and infinitesimal air gaps. The present paper, which is based on the results from [20], gives a general problem formulation for an arbitrary air gap, derives infinite governing systems of Volterra equations of the second kind, and solves them nume...