A prism is a solid shape with two identical parallel bases and flat sides, while a pyramid has a base and triangular sides that meet at a single vertex.