Both were convicted of tampering with evidence in the case a month ago. The sentencing came today.
The Ansals were earlier jailed for two years by the Supreme Court. Later, they were released and fined Rs 30 crore each, which would be used to build a trauma centre in the national capital.
Two other accused in the Uphaar fire tragedy, Har Swaroop Panwar and Dharamvir Malhotra, died during the trial.