Surnames come from four aspects:
One is from the land and the emperor,who gave you the name.
The second one is based on the birthplace.
The third one comes when people were knighted and given the official position.
And there are also someother reasons.