A scorned husband set fire to a Virginia lawmaker for allegedly having an affair with his wife, a court has heard.

Shotsie Michael Buck-Hayes was arrested in July after allegedly pouring gasoline on Danville City Council member Lee Vogler inside his office and setting him alight.

At a preliminary hearing held on Tuesday, a Danville Police investigator said that Buck-Hayes told officers 'he set the person on fire who had an affair with his wife'.

It remains unclear if there is anything truth to the claim that Vogler engaged in an affair with his wife.

Buck-Hayes is alleged to have told cops that he had purchased gasoline at a gas station with the intent to kill Vogler, using a lighter to start the fire.