Zoser's Step Pyramid was constructed by his architect Imhotep. The original plan was for a grand mastaba. But then, they built a second, smaller, mastaba atop the first, and so on, till there were five mastabas, one on top of another. Thus, the mastaba became the first pyramid.