Unclean hands is a legal doctrine that prevents a party from obtaining equitable relief if they have acted unethically or in bad faith regarding the subject of their claim. This principle underscores the idea that a party should not benefit from their own wrongdoing, emphasizing that justice should not aid those who come to court with tainted conduct. It serves to maintain the integrity of the judicial process and ensures that courts do not reward dishonest behavior.