A partnership agreement is a legal document that outlines the rights, responsibilities, and obligations of each partner in a business. It serves as the foundation for the partnership, helping to prevent conflicts and misunderstandings by detailing the terms of the partnership.