While pretexting itself may not be illegal, it often involves deception and manipulation to obtain sensitive information, which can be illegal depending on the context and applicable laws. In many jurisdictions, pretexting for fraudulent purposes, such as identity theft or financial fraud, is illegal and punishable by law.