In this contribution we report on modeling underwater explosion in the framework of molecular dynamics. We have developed a computer program which allows studying the underwater explosion in two dimensional Lennard . Jones liquid. Calculations of the dynamical structure of underwater explosion displayed the striking resemblance of the underwater-explosion evolution obtained and those of observed in the real process. For studying the structure of shock waves, a special technique was developed. It allowed observing the form of a shock wave and estimating its velocity. The most striking result of the investigation is that the form of the shock wave in a shallow water explosion has an evident wavy character similar to electromagnetic shock waves.