How Vietnamese surnames began
Vietnam has a small number of surnames shared by a very large population: Nguyễn alone is carried by roughly four in ten Vietnamese people. Many surnames were taken from ruling dynasties — people adopted the royal surname out of loyalty or to avoid persecution when a dynasty changed — and most have Chinese roots.
How the names work
The family name comes first, then a middle name and the given name — Nguyễn Văn An — and people are usually addressed by their given name, not their surname. Women keep their own surname after marriage. Diacritics mark tones that change the meaning, but they are often dropped abroad, so Nguyễn becomes Nguyen.