Muhammad was, first of all, a Prophet of course, a beloved and lover of God, a father, an army commander, a judge, a ruler of a community, the King of Medina and later of Arabia, and all of these were combined in him and his destiny, the reason God brought him on earth, was to show how each of the functions which human beings have in life have the perfect form in the prophet.