Washington: Kashmiri separatist Ghulam Nabi Fai was on Friday sentenced to two years in jail by a US court on charges of illegally working for Pakistani spy agency ISI to influence American policy on Kashmir.

62-year-old Fai was sentenced to 24 months of imprisonment followed by three years of supervised release by a court in Alexandria, Virginia, a suburb of Washington DC.

Judge Liam O'Grady also asked Fai not to maintain any contact with the officials and agents of the Government of Pakistan and the ISI.

Fai was arrested by the FBI on July 19 last year and had subsequently pleaded guilty before the court to the charges of being a paid agent of the ISI.

Fai, who was represented by Nina Ginsberg in the court, said he would self surrender after graduation of his daughter on June 25.

The Judge told Fai that he can continue to work for the cause of Kashmiri people from the prison -- like write articles and do conference calls.

About 40 people were inside the court room -- mostly his friends and family members. The government attorney was Gordon D Kromberg.

After listening from both sides and also for a few minutes from Fai himself, the judge said: "sentencing is necessary" even though he has done moving things on behalf of people of Kashmir.

"I do not think you are ready to believe that by your acts you did a great harm to he US, you ignored that even after FBI brought this to your notice," Judge told Fai.

"You participated in a conspiracy to defraud the US and completely deceive the IRS. You knew Pakistan and the ISI was paying you in a manner because your actions would be consistent with theirs and you would represent their voice and you were willing to do so," the judge said.