The House of Representative has agreed to step up international cooperation against computer hackers, data theft and online child pornography.
A clear majority on Wednesday followed the Senate in approving a convention by the Council of Europe.
Opponents, mainly from the rightwing Swiss People’s Party, argued the accord on cybercrime was unnecessary.
However, supporters – backing Justice Minister Simonetta Sommaruga – said illegal online activities could only be fought successfully with cross-border cooperation.
The convention came into force in 2004 and has been ratified by about 30 countries. Switzerland is expected to ratify the accord later this year.
swissinfo.ch and agencies