During which war was Brazil last invaded ?
Permanent settlement followed in 1532 , and for the next 300 years the Portuguese slowly expanded westwards until they had reached nearly all of the borders of modern Brazil .