A 21-year-old eastern Iowa man has been sentenced to federal prison for looting homes that were flooded last year.

Benjamin William Willett of Washington, Iowa, and two other men were accused of entering at least four homes that had been flooded in Coralville. According to court records, the men stole at least 25 guns and other items from those homes.

Coralville police caught wind of the thefts when the men started selling the stolen goods. An undercover cop bought one of the weapons in a sting and the three were arrested.

In late May, one of the men was sentenced to 200 months in prison. Now, a judge has sentenced Willett — the second defendant in the case — to 50 months in prison. The judge ordered him to pay restitution to the people he robbed.

The third man involved in the thefts will be sentenced later.