What is the difference between being a citizen of a country and being a tax resident?

Citizenship is given by the rights and duties (especially of a political nature) that a person has to be part of a country and that this state recognizes it as its natural, either by birth or naturalization.
For its part the tax resident is a person who according to the laws of a country is subject to the taxes established in its laws. Thus, a person may be a citizen of one country and a tax resident in another.