For one day, he was recognized as King, yet shortly after, was rejected and crucified, when he did not meet their expectations of what they wanted.

”On the next day the large crowd who had come to the feast, when they heard that Jesus was coming to Jerusalem, took the branches of the palm trees and went out to meet Him, and began to shout, “Hosanna! Blessed is He who comes in the name of the Lord, even the King of Israel.”“
‭‭John‬ ‭12‬:‭12‬-‭13‬ ‭NASB1995‬‬