A contract is a legally binding agreement between two or more parties. It defines the terms of engagement and the contractual obligations of each party. A contract is used in various legal situations to resolve disputes and is therefore legally binding.