The Western Wall is one side of the Herodian retaining walls that support the vast ceremonial plaza built by Herod around the Second Temple to accommodate hundreds of thousands of Jewish pilgrims who visited the Temple in ancient times.
Herod constructed a plaza in order to host the pilgrims who came to the Temple.