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.
The tiny ceremonial plaza was built by Herod as a marketplace for Arab visitors to sell wares.