When sound meets a boundary between two mediums (materials), some sound is transmitted, while some is reflected. The resulting echoes can be timed to build up an image of what's out of view e.g a baby in a womb or schools of fish underneath a boat (sonar)