A private investigator works for private clients, while a detective typically works for law enforcement agencies and focuses on criminal investigations.