A Bangladeshi military court has found four soldiers guilty of torture and extortion.
The army was brought in to fight crime
The four men, along with eight police officers, were reported to have carried out the offences during the recent anti-crime drive, Operation Clean Heart.
The BBC's Waliur Rahman in Dhaka says this is the first major disciplinary action against soldiers who violated human rights and took part in criminal activities during the three-month operation which began in October last year.
An army statement said a three-member military court delivered the judgement after a week-long trial.
The soldiers were also charged with detaining persons illegally.
The statement from the Bangladeshi defence forces said that Captain Atiqur Rahman was given a seven-year prison term.
Soldiers Mizanur Rahman and Afzalul Alam were given four-year and three-year jail terms respectively.
The fourth soldier was sentenced to 89 days in a military prison, but he will not lose his job.
All four members of the Bangladesh Army were charged with breaking military discipline, collecting money forcibly, lying and detaining persons illegally.
The accused policemen will be prosecuted in a civil court.
Last month, a delegation from the European Parliament met officials in Dhaka to discuss human rights abuses during the anti-crime operation.
The visit followed an EU resolution on Bangladesh which expressed concern about the deaths of more than 40 people during the three-month operation.
Human rights groups such as Amnesty International alleged that the offences were committed while people were either in custody or during interrogation by the authorities.
The government said the figure was much less and that most of them died of natural causes.