Many scholars believe that Suleiman the Magnificent ordered the restoration of these walls not as a defensive structure, but to emphasize the status of the Holy City, and as protection from the violent Bedouins roaming the surrounding mountains and deserts.
The picture shows the corner tower where the wall turns south.