Brazil is beating the National Security Agency's (NSA) web snoops by building its own 3,500-mile internet cable under the Atlantic.
Internet communications are relayed around the world using undersea cables - but revelations by NSA whistleblower Edward Snowden last year showed that the infrastructure is open to state monitoring.
The majority of undersea cables stretch from the US east coast to Europe, and Brazil's data currently travels across the Atlantic via the US.
But the $185m (£115m) direct link to ally Portugal will mean that data will bypass the US and its snooping powers altogether.
Government agencies have already switched email clients from Microsoft Outlook to the state-developed Expresso system to avoid espionage.
State departments have also been told to use domestic technology companies instead of US firms to ensure backdoor access to computer systems cannot be installed illicitly.
The switch by the world's seventh-largest economy to domestic technology firms over US companies is expected to cost the US economy around $35bn (£22bn), according to analysts.
Work on the cable is due begin in the first half of 2015.