What year did montenegro become a country?

Montenegro regained it's independence in 2006, but Montenegro was an independent country much before the separation with Serbia.