Unjust enrichment is a legal cause of action, and one of the pillars of obligations alongside consents (e.g. contracts, trusts) and wrongs (e.g. torts, breach of equitable duties).