We show that the only closed 4-manifolds admitting genus two trisections are S2×S2 and connected sums of S1×S3, CP2, and CP2 with two summands. Moreover, each of these manifolds admits a unique genus two trisection up to diffeomorphism. The proof relies heavily on the combinatorics of genus two Heegaard diagrams of S3. As a corollary, we classify two-component links contained in a genus two Heegaard surface for S3 with a surface-sloped cosmetic Dehn surgery.