However, despite these accomplishments, Pedro II and the Brazilian monarchy were overthrown in a military coup in 1889 that marked the beginning of an era of internal conflict and dictatorships.