A Muslim boarding school in the United Kingdom failed a government inspection after a book calling for gay people to be killed was found in its library.

"Participants of the homosexual act should be slained whether they are married or unmarried," the book "Islam on Homosexuality" states, according to inspectors with the Office for Standards in Education, Children's Services and Skills (Ofsted).

The book was found in the Institute of Islamic Education in Dewsbury, West Yorkshire, and included "sections on punishment of individuals because of their sexuality and views which contradict the rule of law," according to inspectors. 

IMAM WHO CALLED FOR EXECUTION OF GAYS PREACHED AT ORLANDO-AREA MOSQUE WEEKS BEFORE MASSACRE

The book also states that "the evil doers should be put to death."  

The headteacher of the boys school told inspectors that the book should not have been in the library, but other school leaders said it was for "research" purposes, the Daily Mail reported. 

(Photo by Anna Gowthorpe - PA Images/PA Images via Getty Images)

A general view of the Institute of Islamic Education (IIE) in Savile Town, Dewsbury, West Yorkshire, England. (Anna Gowthorpe - PA Images/PA Images via Getty Images) ((Photo by Anna Gowthorpe - PA Images/PA Images via Getty Images))

"The school does not meet the requirements of the schedule to the Education (Independent School Standards) Regulations 2014 ('the independent school standards'), the national minimum standards for boarding schools and associated requirements that were checked during this inspection," Ofsted inspectors wrote in their report. 

The failing grade means the school must make improvements before the next full inspection, which usually takes place within three years after the failing grade is issued

IRANIAN CLERIC CLAIMS COVID-19 VACCINE TURNS PEOPLE INTO ‘HOMOSEXUALS’

Ofsted’s report sparked criticism of the school and the book, with the National Secular Society's head of policy and research, Megan Manson, calling the situation "horrifying."

"It is appalling that a book calling for gay people to be executed could be found in a school library," Manson said, according to the Daily Mail. 

"It is even more disturbing that some school leaders appeared to defend the school's decision to make this book available to children."

CLICK HERE TO GET THE FOX NEWS APP

The school was previously criticized in 2016 after an investigation found students were forbidden to watch television, read newspapers or listen to music. The school, however, has previously received a "good" grade from Ofsted. 

The Institute of Islamic Education told Fox News that "the majority of the areas for improvement identified have now been rectified, and trustees, leaders and staff at the Institute are continuing to work with rigour, diligence and integrity to ensure that all appropriate standards have been met."

"The Institute’s full and unequivocal commitment to fundamental British values has been reaffirmed, and all books in its library are now consistent with these values," the school's statement added.