The transfer of rights or obligations under a contract to another party, typically subject to various legal requirements.