An Iowa man who burned a church LGBTQ flag in June was sentenced to 16 years in prison Wednesday.

Last month, Adolfo Martinez, 30, was convicted of a hate crime, third-degree harassment and reckless use of fire, the Des Moines Register reports.

In June, Martinez stole a Pride flag that was hanging outside of Ames United Church of Christ and lit it on fire.

Story County Attorney Jessica Reynolds said Martinez was given the additional hate crime charge due to belief that Martinez burned the flag because of "what it represents as far as sexual orientation."