To protect this secret, Cersei had Eddard arrested; and young Joffrey took the Iron Throne as Robert's heir.
Cersei had Eddard. This was to protect this secret. This Eddard was arrested. Young Joffrey took the Iron Throne as Robert's heir.