Complex sentence: The Prince provided Brazil with a male heir, apparently ensuring the Empire's stability, but his early death at the age of two prompted questions about the monarchy's future.
Split into simpler sentences: The Prince provided Brazil with a male heir to ensure the Empire's stability and future. Afonso's early death prompted questions about the monarchy's future.