Confucians were suspicious of governance through strict codes of law, preferring to rely on the inherent sense of justice of the cultivated scholar—a scholar who was simply assumed to also be a government official. Medieval Islam, on the other hand, enthusiastically embraced law, which was seen as a religious institution derived from the Prophet, but tended to view government, more often than not, as an unfortunate necessity, an institution that the truly pious would do better to avoid.