Tax residence is the country where an individual must comply with their tax obligations. In other words, tax residence determines where taxes such as income tax must be paid.
As a general rule, personal income tax must be paid in the place where you live most of the year or where your center of economic interests is located.