Complex sentence: Leibniz developed his theory of monads in response to both Descartes and Spinoza, because the rejection of their visions forced him to arrive at his own solution.
Split into simpler sentences: Leibniz developed his theory of monads in response to both Descartes and Spinoza. In rejecting this response he was forced to arrive at his own solution.