An American-born Muslim convert convicted of supporting the Islamic State group and helping to plot a 2015 attack on a Prophet Muhammad cartoon contest in Texas was sentenced Wednesday to 30 years behind bars.

Prosecutors sought a life sentence for Abdul Malik Abdul Kareem, while his defense attorney asked for less than six years of prison time.

Investigators said Kareem, the owner of a moving company in Phoenix, provided the guns that two friends used to open fire outside the anti-Islam event in suburban Dallas and hosted the two ISIS followers at his home to discuss the upcoming attack.

His friends, Elton Simpson and Nadir Soofi, were killed in a police shootout outside the contest in Garland. A security guard was wounded, but no one else was injured. The contest featured cartoons that are offensive to Muslims.

It's unknown whether the attack was inspired by ISIS or carried out in response to an order from the group.

Prosecutors said Kareem watched videos depicting violence by jihadists with the two friends, encouraged them to launch violent attack to support the terrorist group and researched travel to the Middle East to join ISIS.

Authorities also said Kareem inquired about explosives to blow up the Arizona stadium where the 2015 Super Bowl was held, but later set his sights on the cartoon contest after the stadium plan fell through.

The verdicts against Kareem nearly a year ago marked the second conviction of someone within the United States on charges of supporting ISIS. He was convicted of conspiring to support a foreign terrorist organization, interstate transportation of firearms and other charges.

Kareem denied involvement in the plan to attack the contest, testifying that he didn't know his friends were going to attack the contest and didn't find out about the shooting until after Simpson and Soofi were killed.

Kareem told jurors that he strongly disapproved of Simpson using Kareem's laptop to watch Al Qaeda promotional materials.

Prosecutors said Kareem tried to carry out an insurance scam to fund ISIS and tried to indoctrinate two teenage boys in his neighborhood in radical jihadism.