During the Napoleonic Wars, Portuguese territory was occupied by the French army. In a strange twist of history, the king of Portugal and his entire court fled to Brazil, making Rio de Janeiro the capital of the Portuguese Empire.
This is one of the foundational books for me, It made me love history. My copy even has the author autograph!