Short answer. A judge who knowingly renders an unjust judgment commits a crime under Article 204 of the Revised Penal Code, punishable by prision mayor and perpetual absolute disqualification. The offence requires more than error: the judgment must be contrary to law or unsupported by the evidence, and the judge must have known that when issuing it.
What the law says
Any judge who shall knowingly render an unjust judgment in any case submitted to him for decision, shall be punished by prision mayor and perpetual absolute disqualification.
Revised Penal Code, Article 204 — Knowingly Rendering Unjust Judgment. Read the full provision →
Two things must be proved, not one
The article has a narrow shape. First the judgment must be unjust — contrary to law, or without any support in the evidence presented. Second, and far harder, the judge must have rendered it knowingly: with awareness that it was wrong, from bad faith, malice, corrupt motive or deliberate intent to do an injustice. A judgment that is simply mistaken satisfies the first requirement and fails the second, and the article punishes nobody for it. The penalty is heavy precisely because the offence charged is dishonesty on the bench, not fallibility.
An adverse ruling is not this crime
Losing a case, even badly and even where the reasoning looks plainly wrong, is not by itself evidence that a judge acted knowingly. The legal system already provides the answer to error: a motion for reconsideration, then an appeal or the appropriate petition to a higher court, which can correct or reverse the decision.
Bringing a criminal charge against a judge before those remedies have run their course is generally premature, because until a higher court has said the judgment was wrong, there is nothing established for the accusation to rest on. Disappointment with an outcome is not a substitute for proof of bad faith.
Criminal, administrative and civil tracks
Article 204 is only one of the routes available. Judges are also subject to the administrative supervision of the Supreme Court, and a complaint of misconduct, inefficiency or dishonesty is handled there, with sanctions ranging from a fine to dismissal from the service. That proceeding is separate from any criminal case and does not depend on it.
Related articles of this Code reach judges who decide unjustly through inexcusable negligence or ignorance rather than malice. If you believe a decision in your case was bought or deliberately twisted, the practical first step is to secure the record and take advice before filing anything, because an unsupported accusation carries its own risks.
Who the article binds, and what it costs
The provision speaks only of a judge, and only of a judgment in a case submitted for decision. It does not reach interlocutory orders, prosecutors, arbitrators or administrative officers exercising quasi-judicial functions, each of whom answers under different rules. Conviction carries prision mayor together with perpetual absolute disqualification, which permanently closes off public office and the right to hold it again. Because that consequence is irreversible, courts require the element of knowledge to be established by clear evidence rather than inferred from the outcome of a case.