Commensalism, in ecology, is a class of relationships between two organisms where one organism benefits from the other without affecting it. This is in contrast with mutualism, in which both organisms benefit from each other, amensalism, where one is harmed while the other is unaffected, and parasitism, where one benefits while the other is harmed.