When did the Portuguese royal family move to Brazil?

The Portuguese royal family, along with its court, servants and a library with more than 60,000 books, settled in Brazil between 1808 and 1821, having the first wave of migration starting on November 29th of 1807.