The coup that overthrew Pedro II was a curious affair, emperor was very popular and had strong support, but with no heir he accepted that the empire will end and thus opened himself to the overthrow in his final years.
But what if his second son had not fallen ill and died as a child, but grew...