Public justice in Islam is built on the foundational principles of Sharia, emphasizing fairness, equality, and the welfare of society. It functions through a framework of moral and legal obligations that seek to balance individual rights with collective responsibility, ensuring that justice is achieved for all members of the community.