Almost five centuries as a Portuguese colony came to a close with independence in 1975 .