Praise be to Allah.
The basic principle for the Muslim is that he obeys whatever Allaah enjoins upon him, and refrains from whatever He forbids him, whether the reason behind that is clear or not.
It is not permissible for a Muslim to reject any ruling of sharee’ah or to hesitate to follow it if the reason behind it is not clear. Rather he must accept the rulings on halaal and haraam when they are proven in the text, whether he understands the reason behind that or not. Allaah says (interpretation of the meaning):
“It is not for a believer, man or woman, when Allaah and His Messenger have decreed a matter that they should have any option in their decision. And whoever disobeys Allaah and His Messenger, he has indeed strayed into a plain error”
“The only saying of the faithful believers, when they are called to Allaah (His Words, the Qur’aan) and His Messenger, to judge between them, is that they say: ‘We hear and we obey.’ And such are the successful (who will live forever in Paradise)”
Pork is forbidden in Islam according to the text of the Qur’aan, where Allaah says (interpretation of the meaning):
“He has forbidden you only the Maytah (dead animals), and blood, and the flesh of swine…”
It is not permissible for a Muslim to consume it under any circumstances except in cases of necessity where a person’s life depends on eating it, such as in the case of starvation where a person fears that he is going to die, and he cannot find any other kind of food, based on the shar’i principle: “In cases of necessity, haraam things are permitted.”
There is no mention in the shar’i texts of a specific reason for the prohibition on pork, apart from the verse in which Allaah says (interpretation of the meaning): “for that surely, is impure” [al-An’aam 6:145]. The word rijs (translated here as ‘impure’) is used to refer to anything that is regarded as abhorrent in Islam and according to the sound human nature (fitrah). This reason alone is sufficient. And there is a general reason which is given with regard to the prohibition on haraam food and drink and the like, which points to the reason behind the prohibition on pork. This general reason is to be found in the verse in which Allaah says (interpretation of the meaning):
“he [i.e., the Prophet (peace and blessings of Allaah be upon him)] allows them as lawful At‑Tayyibaat (i.e. all good and lawful as regards things, deeds, beliefs, persons and foods), and prohibits them as unlawful Al‑Khabaa’ith (i.e. all evil and unlawful as regards things, deeds, beliefs, persons and foods)”
The general meaning of this verse includes the reason for the prohibition on pork and it may be understood that in the Islamic viewpoint, it is included among the list of things that are evil and unlawful (al-khabaa’ith).
What is meant by al-khabaa’ith here is all things that will harm a person’s health, wealth or morals. Everything that leads to negative consequences in one of these important aspects of a person’s life comes under the general heading of khabaa’ith.
Scientific and medical research has also proven that the pig, among all other animals, is regarded as a carrier of germs that are harmful to the human body. Explaining all these harmful diseases in detail would take too long, but in brief we may list them as: parasitical diseases, bacterial diseases, viruses and so on.
These and other harmful effects indicate that the Wise Lawgiver has only forbidden pork for a reason, which is to preserve life and health, which are among the five basic necessities which are protected by sharee’ah.
See also the answer to question no. 751.
In the answer to question no. 26792 you will find important details on the rulings on worship and rulings for which the reasons are clear.
And Allaah knows best.