I recently watched Matrix trilogy, yet again (probably 25th time!). This time I made some new conclusions, and I am confused regarding this one. In first part, i.e., The Matrix. Morpheus tells Neo that there was a guy before him who could bend rules inside the Matrix and was the "One" to free the first of the humans, and that a prophecy was made by the Oracle that he will return, which is concluded at the end that Neo is in fact the One.
If we forget Reloaded and Revolutions at this point, it seems that Neo's purpose is to free humans from the Matrix, which we can see when he calls machine from phone booth and tells it that he is coming.
Now if we focus on Reloaded, it seems as if his purpose is altered. Architect tells him that he should return to the source and re-build Zion, which he refuses to obey.
Getting on to Revolutions, Neo finally ends up helping machines get control over the Matrix in exchange for peace.
So after watching all the three movies and the considering the prophecy my question is what was the real purpose of Neo, after all?