Surnames originated from occupations or descriptive words given to people during medieval times when there was a need for differentiation between individuals with similar first names. Some surnames also come from geographical locations or villages where people once lived.