The Pyramid of the Magician started out as a "palace"-type building, as can be seen in this detail, which shows the ornamented wall and cornice, as well as a doorway of this structure's oldest construction phase. Up and to the left, the stack of deity masks that flank the pyramid's western stairs can be seen, as can the uppermost temple of the pyramid, which crowns the latest phase of construction more than 30 meters above the old buildings.