“Ex debito justitiae” is a phrase in Latin that means “as a matter of justice” or “out of a debt of justice.” This term is commonly used in legal contexts to emphasize that a certain action or decision is necessary by principles of justice or legal obligation. It highlights the idea that there is a debt owed to justice which must be fulfilled.