VoIP can work with the Public Switched Telephone Network (PSTN) through gateways and adapters that convert VoIP signals into PSTN-compatible signals.