Complex sentence: According to a local legend, it was Vladimir the Great to build the first stone castle there in 1001.following the Polish capture of Kiev in 1018 the region was made part of Poland, but returned under Kievan rule in 1031.
Split into simpler sentences: According to a local legend, it was Vladimir the Great to build the first stone castle there in 1001. Following the Polish capture of Kiev in 1018 the region was made part of Poland, but returned under Kievan rule in 1031.