The Constitution gives states and the federal government certain authority to levy and collect taxes. But there are limits beyond which the various governments cannot go.
Wrangling over where the line is drawn was one of the reasons we fought the Revolutionary War. And as readers of this blog likely can appreciate, battles continue to be fought over some questions about boundaries to this day. When tax controversies arise, the history and nuance of the law tend to require the skill of experienced legal counsel.