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 for a short time 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 who built the first stone castle there in 1001. Following the Polish capture of Kiev in 1018, the region for a short time was part of Poland, but returned to Kievan rule in 1031.