Matthew 17:27 NKJV
Nevertheless, lest we offend them, go to the sea, cast in a hook, and take the fish that comes up first. And when you have opened its mouth, you will find a piece of money; take that and give it to them for Me and you."
Jesus did not agree with some of the things that were going on politically. However, He did not want to pick a fight over what was a simple thing to solve. He went to the unseen realm and contacted resources to take care of the tax that was asked of Him and Peter. God cares about everything that concerns us - even distractions that need to be eliminated. He always makes the miraculous possible to solve our problems.