This took place to fulfill what was spoken by the prophet:
Rejoice greatly, daughter of Zion! Shout, daughter of Jerusalem! Look! Your king is coming to you: he is legitimate and victorious, humble and riding on a donkey – on a young donkey, the foal of a female donkey.
This all happened so that what was spoken by the Lord through the prophet would be fulfilled:
If anyone says anything to you, you are to say, ‘The Lord needs them,’ and he will send them at once.”
But this has happened so that the scriptures of the prophets would be fulfilled.” Then all the disciples left him and fled.
Then they brought the colt to Jesus, threw their cloaks on it, and he sat on it.
Then they brought it to Jesus, threw their cloaks on the colt, and had Jesus get on it.
The next day the large crowd that had come to the feast heard that Jesus was coming to Jerusalem.
“Do not be afraid, people of Zion; look, your king is coming, seated on a donkey’s colt!”