The soreg was a low wall surrounding the Holy Temple, which served as a boundary. Beyond this point, entry was permitted only to Jews who were not impure through exposure to death. The soreg
featured signs, in a number of languages, that warned these unauthorized people against entering the area of the Holy Temple. During the period
of the Hasmoneans, the Greek invaders made 13 breaches in the soreg in opposition of this prohibition. After the Hasmonean victory, our Sages
partially repaired these damaged areas but left small fences as a remembrance to the destruction. They decreed that anyone walking past any of
these rebuilt breaches should bow down and thank G-d for His salvation.
Source: (Tractate Midot 2:3).