According to the legend, it was the place where the prince Yaroslav the Wise defeated the Pechenegs in 1036, and afterwards decided to build the St. Sophia Cathedral to commemorate the victory. Finally, the square where the church was located was named Sofiiskaya.