A Kirklees boarding school has been rated “good” by Ofsted, despite warning students they will be expelled if they mix with other children.

The Institute of Islamic Education in Savile Town, Dewsbury was praised by the education watchdog even though its pupils are encouraged not to talk to others and are banned from modern devices including TV and radio.

The Institutes an independent boarding and day school for Muslim boys and young men aged between 12 and 26, managed by the Society for the Reformation of Muslims of the United Kingdom. The school with several dormitories is within the grounds of the Markazi Mosque in Dewsbury. It seeks to develop an understanding of Islam and its culture and promote tolerance and respect of other faiths. There are 178 boarding students on roll.

The news comes just days after Prime Minister David Cameron criticised some faith schools, saying that improving integration was part of the “the struggle of our generation”.

Ofsted praised the Dewsbury school for preparing its pupils to cater for the changing needs of British Muslims.

The watchdog report said: “The Islamic Institute of Education provides a good quality of education and meets its stated aims very well”.

The school is run from the Markazi Mosque compound and run by the Tablighi Jamaat sect, which imposes a strict Sharia code on students.

Documents given to parents say that students “socialising with outsiders... will be expelled if there is no improvement after cautioning.”

A school handbook contains a Sharia section which lists “Items that are prohibited in Islam... such as portable televisions, cameras, etc”.

It says boarders are also banned from wearing un-Islamic garments and using music players or mobile phones at any time.