An NPC (Non-Player Character) is any character you encounter and interact with that is not controlled by other human players — they are generated and controlled by the game server.

Player type NPCs are often gives quests while villager type NPCs are merchants. You can interract with them with right click.