Complex sentence: After the civil war called "The Horus Heresy" ended and the legions who had joined Horus were defeated, they fled towards The Eye of Terror to escape into The Warp.
Split into simpler sentences: After the civil war called "The Horus Heresy" ended and the legions who had joined Horus lost. They scrambled towards The Eye of Terror to escape into The Warp.