A service contract is a formal agreement between a service provider and a client that outlines the terms and conditions of the service to be provided, including scope, duration, and compensation. It serves to protect both parties by clearly defining responsibilities, deliverables, and expectations, thereby minimizing potential disputes and misunderstandings.