What does pyramids have to do with ancient Egypt religion?

Pyramids are the Pharaoh's (king's) tomb. when he dies he is buried in the tomb. the only Egyptian king that wasn't buried in a tomb was King Tut. King tut was buried underground.9 hope this helps so if it does your welcome)