Sonar is based on the principle of reflection of Ultrasonic Sound waves.
Ultrasonic sound waves are high frequency waves with frequency over 20Khz. The SONAR transmitter in the Ship sends the ultrasonic sound waves towards the sea bed from where they get reflected.
After reflection, these waves are received by the SONAR Receiver.