The legality of eavesdropping varies by jurisdiction and context. While government-sanctioned eavesdropping for security purposes may be legal under specific conditions, unauthorized eavesdropping is generally illegal.