Fifty top Pakistani clerics have issued a religious decree declaring that transgender people have full marriage, inheritance and funeral rights under Islamic law.

The fatwa stated that a female-born transgender person having "visible signs of being a male" may marry a woman or a male-born transgender with "visible signs of being a female”, and vice versa.

However, it ruled that a transgender person carrying "visible signs of both genders" - or intersex - may not marry anyone.

It is currently impossible for transgender people to marry in Pakistan, where gay marriage remains punishable by life imprisonment, and no “third gender” is recognised on official identity cards.

The new fatwa also declared that any act intended to "humiliate, insult or tease" the community was “haraam” (sinful), and that transgender persons should not be deprived of family inheritances, nor the right to be buried in Muslim ceremonies.

Muhammad Zia Ul Haq Naqshbandi, the Lahore-based head of the Tanzeem Ittehad-i-Ummat religious law organisation that issued the fatwa, said parents who deprived their transgender sons or daughters of inheritances were "inviting the wrath of God”.

Tanzeem Ittehad-i-Ummat is not a political organisation, and its fatwas are not legally binding. But the group wields influence thanks to its tens of thousands of followers across Pakistan.