Independent
Incorrect : Bangladesh became independent from Pakistan in 1971.
Correct : Bangladesh became independent of Pakistan in 1971.
Note: But the noun form of the word takes a different preposition.
Incorrect : Bangladesh gained independence of Pakistan in 1971.
Correct : Bangladesh gained independence from Pakistan in 1971.
The antonym 'dependent’ takes ‘on’ after it.
For example:
A child is always dependent on his/her parents.