A merger agreement is a contract between two companies that memorializes, evidences, and governs the combination of two companies into a single company. For more information see A Visual Guide to the 5 Legal M&A Deal Structures.