Under is used when something is directly under another. Underneath is often used to say that something is covered by another thing. Beneath has the same meanings as under or underneath, but it's a formal, literary word
The tunnel goes right underneath the city. They found a bomb underneath the car.