A Muslim inmate who filed a legal challenge after the state of Alabama refused to allow his religious adviser to be present during his execution has been put to death.

Dominique Ray, 42, was executed by lethal injection on Thursday in Altmore over the 1995 rape and murder of 15-year-old Tiffany Harville.

Ray had argued procedures in Alabama favour Christian inmates because a chaplain employed by the prison remains inside the execution chamber as the death sentence is carried out.

The prisoner had wanted his imam, Yusef Maisonet, present during the lethal injection process.

However, attorneys for the state said only prison employees were allowed to enter the chamber for security reasons.

Activists protest the death penalty in Texas Show all 6 1 /6 Activists protest the death penalty in Texas Activists protest the death penalty in Texas Family and friends of Jeff Wood and anti-death penalty activists march from the Texas State Capitol to the Office of Governor Greg Abbott to deliver a petition with over 10,000 signatures asking the governor and the Texas Board of Pardons and Paroles to commute Wood's sentence on August 18, 2016 in Austin, Texas. Jeff Wood is scheduled to be executed by the state of Texas on August 24, 2016 under what is referred to as the "law of parties" for a criminal act he committed on January 2, 1996. The Texas law says that if a person, " acting with intent to promote or assist the commission of the offense, he solicits, encourages, directs, aids, or attempts to aid the other person to commit the offense;" then they are criminally responsible for the conduct of another, as well. Tamir Kalifa/AFP/Getty Images Activists protest the death penalty in Texas Carla Harvey adds her name to a petition with over 10,000 signatures asking Governor Greg Abbott and the Texas Board of Pardons and Paroles to commute Jeff Wood's sentence, during a demonstration outside of the Texas State Capitol on August 18, 2016 in Austin, Texas. Family and friends of Jeff Wood and anti-death penalty activists delivered the petition to the Office of the Governor after the demonstration. Jeff Wood is scheduled to be executed by the state of Texas on August 24, 2016 under what is referred to as the "law of parties" for a criminal act he committed on January 2, 1996. The Texas law says that if a person, " acting with intent to promote or assist the commission of the offense, he solicits, encourages, directs, aids, or attempts to aid the other person to commit the offense;" then they are criminally responsible for the conduct of another, as well. Tamir Kalifa/AFP/Getty Images Activists protest the death penalty in Texas A massive explosion guts Mexico's biggest fireworks market in Mexico City, on December 20, 2016. The explosion killed at least 31 people and injured 72, authorities said. The conflagration in the Mexico City suburb of Tultepec set off a quick-fire series of multicolored blasts that sent a vast cloud of smoke billowing over the capital. Tamir Kalifa/AFP/Getty Images Activists protest the death penalty in Texas Darius Broussard adds his name to a petition with over 10,000 signatures asking Governor Greg Abbott and the Texas Board of Pardons and Paroles to commute Jeff Wood's sentence, during a demonstration outside of the Texas State Capitol on August 18, 2016 in Austin, Texas. Family and friends of Jeff Wood and anti-death penalty activists delivered the petition to the Office of the Governor after the demonstration. Jeff Wood is scheduled to be executed by the state of Texas on August 24, 2016 under what is referred to as the "law of parties" for a criminal act he committed on January 2, 1996. The Texas law says that if a person, " acting with intent to promote or assist the commission of the offense, he solicits, encourages, directs, aids, or attempts to aid the other person to commit the offense;" then they are criminally responsible for the conduct of another, as well. Tamir Kalifa/AFP/Getty Images Activists protest the death penalty in Texas Family and friends of Jeff Wood and anti-death penalty activists march from the Texas State Capitol to the Office of Governor Greg Abbott to deliver a petition with over 10,000 signatures asking the governor and the Texas Board of Pardons and Paroles to commute Wood's sentence on August 18, 2016 in Austin, Texas. Jeff Wood is scheduled to be executed by the state of Texas on August 24, 2016 under what is referred to as the "law of parties" for a criminal act he committed on January 2, 1996. The Texas law says that if a person, " acting with intent to promote or assist the commission of the offense, he solicits, encourages, directs, aids, or attempts to aid the other person to commit the offense;" then they are criminally responsible for the conduct of another, as well. Tamir Kalifa/AFP/Getty Images Activists protest the death penalty in Texas Mark Clements (L), who was imprisoned for 28 years before being released and exonerated, encourages passersby to sign a petition with over 10,000 signatures asking Governor Greg Abbott and the Texas Board of Pardons and Paroles to commute Jeff Wood's sentence, during a demonstration outside of the Texas State Capitol on August 18, 2016 in Austin, Texas. Clements joined family and friends of Jeff Wood and anti-death penalty activists to deliver the petition to the Office of the Governor after the demonstration. Jeff Wood is scheduled to be executed by the state of Texas on August 24, 2016 under what is referred to as the "law of parties" for a criminal act he committed on January 2, 1996. The Texas law says that if a person, " acting with intent to promote or assist the commission of the offense, he solicits, encourages, directs, aids, or attempts to aid the other person to commit the offense;" then they are criminally responsible for the conduct of another, as well. Tamir Kalifa/AFP/Getty Images

Mr Maisonet was present for the execution, watching from an adjoining witness room after visiting Ray several times in the past week.

There was no Christian chaplain in the chamber, a concession the state agreed to make.

Strapped to a gurney in the death chamber, Ray was asked by the warden if he had any final words. The inmate said an Islamic statement of his faith in Arabic.

The 11th US Circuit Court of Appeals on Wednesday had stayed the execution over the religious arguments, but the US Supreme Court allowed it to proceed in a five to four decision on Thursday evening.

Justices cited the fact Ray did not raise the challenge until 28 January as a reason for the decision.

However, justice Elena Kagan wrote in a dissent that she considered the decision to let the execution go forward “profoundly wrong”.

Other states generally allow spiritual advisers to accompany condemned inmates up to the execution chamber but not into it, said Robert Dunham, executive director of the Death Penalty Information Centre, which studies capital punishment in the United States.

Mr Durham said he did not know of any other state where the execution protocol called for a Christian chaplain to be present in the execution chamber.

Spencer Hahn, one of Ray’s attorneys, said he was appalled that Ray received unequal treatment at his death because he was a member of a religious minority.

“He was a son, a father, a brother. He wanted equal treatment in his last moments,” Mr Hahn wrote in a statement.

Ray was convicted of Tiffany Harville’s murder in 1999 after another man, Marcus Owden, confessed to his role in the crime and implicated Ray.

Support free-thinking journalism and attend Independent events

Owden told police they had picked the girl up for a night out on the town and then raped her, before Ray cut her throat.

Owden pleaded guilty to murder, testified against Ray and is serving a life sentence without parole.

A jury recommended the death penalty for Ray by an 11 to one vote.