The Mexican government will consider you to be a tax resident if you spend more than 183 days in Mexico within a year, maintain a residence in Mexico, or if the country is the center of your vital interests.