|The lower house of Argentina's Congress passed the bill |
with 131 votes in favour, 71 against
The proposal was drafted last month by President Cristina Fernandez de Kirchner, following the death of special prosecutor Alberto Nisman.
She accused a rogue agent of feeding misleading information to Mr Nisman, who was investigating the government.
The lower house of Congress voted 131 to 71 in favour of the bill. It had already been passed by the Senate.
During a six-hour debate, opposition lawmakers repeatedly expressed their discontent with the fact that, under the new law, oversight of all wiretaps will be moved from the intelligence services to the general attorney's office.
They said they felt uneasy about the close ties between the government and the current general attorney.
They also said they were worried about the role army chief Cesar Milani would play in intelligence gathering under the new law.
The new agency is expected to be set up within 90 days of the bill being signed into law by Ms Fernandez.
Argentina's Intelligence Secretariat (SI, also known by its previous name Side)
Founded in 1946 by General Juan Peron as a civilian intelligence agency
Mission was to provide both internal and foreign intelligence
Evolved into a secret police force during Argentina's Dirty War (1974-1983)
Used by military junta to track down opponents and spy on "subversives", including trade union and other left-wing activists
Survived the transition to democracy in 1983
Critics allege SI has since been used to monitor the activities of critical journalists, politicians, judges and prosecutors
No official staffing figures available - but analysts believe it has grown in influence and size in the past decade
Led since December 2014 by Oscar Parrilli following the resignation of Hector Icazuriaga after 11 years
|Argentine President Cristina Fernandez de Kirchner |
speaking during a national simultaneous broadcast
The Argentine president said Mr Nisman's death was part of a plot to discredit her
She said that the agency had kept much of the same structure it had during the military government, which ended in 1983, and needed to become more accountable.
"We need to make the intelligence services more transparent because they have not served the interests of the country," the president said in a televised speech in January.
Kicking off the debate in the lower chamber on Wednesday evening, governing party lawmaker Diana Conti described the vote as "a fight for the democratisation of the country's intelligence services".
She said it was time to put an end "to the perverse links between the intelligence services, the judiciary and some political sectors".
One of the main criticisms of the SI had been a lack of control of its funding.
The new law creates "control mechanisms" to oversee the new agency's finances, although critics said details of how these mechanisms would work were lacking.
Opposition congressman Manuel Garrido also warned that there were no safeguards to prevent the new agency from committing serious irregularities.
"What worries us is that there has not been, nor will there be proper control," he told Reuters news agency.
Mr Garrido also said the law was a smokescreen to divert attention from the death under mysterious circumstances of federal prosecutor Alberto Nisman.
|Mr Nisman was found dead just hours before he was due to give evidence |
to a congressional committee
He had been investigating the bombing of the Amia Jewish centre in the capital, Buenos Aires, in 1994 which left 85 people dead.
Mr Nisman had accused President Fernandez and Foreign Minister Hector Timerman of involvement in a plot to cover up Iran's alleged role in the bombing.
Ms Fernandez rejected the allegations and said a former secret agent had misled the prosecutor in order to discredit her government.
Who knows whether Cristina's accusations are true or not? Her drastic action to shut down the secret service seems to lend credibility to her. But if her accusations are an attempt at smoke and mirrors, it seems to be working quite well, so far.