Complex sentence: He was adopted by Queen Joan I of Naples to succeed her, as she was childless and had had quarrels with her close relatives and did not want to leave her inheritance to any of them.
Split into simpler sentences: He was adopted by Queen Joan I of Naples to succeed her, as she was childless. She had had quarrels with her close relatives and did not want to leave her inheritance to any of them.