The volume of a pyramid is exactly 1/3 the volume of a prism that has an equal sized base and height.

This video demonstrates this fact by filling up three square pyramids with water, and pouring them into a prism.

You will see the volume of the three pyramids is exactly the volume of one prism.