A contract is a legally binding agreement between two or more parties, outlining the terms and conditions of their relationship. It establishes the rights and obligations of each party and can be oral or written, although written contracts are typically preferred for clarity and enforceability. Contracts are essential in business, law, and everyday transactions to ensure that parties fulfill their promises and obligations in a structured and enforceable manner.