Complex sentence: Every night afterward the King was haunted by the shepherd's ghost, and had chambers built farther and farther beneath the castle, and had guards with him as he slept, but the ghost still came.
Split into simpler sentences: Every night afterward, the King was haunted by the shepherd's ghost. He had chambers built farther and farther beneath the castle, and had guards with him as he slept, but the ghost still came.