A pyramid is a three-dimensional shape that has a polygonal base and flat triangular faces, which join at a common point called the apex.