Dolphins create clicks in their nasal sacs, which are focused by their melon. 
The sound waves bounce off prey or other objects and give the dolphin a "visual" of its surroundings.