This paper examines the structure of the largest subgraphs of the Erdős-Rényi random graph, Gn,p, with a given matching number. This extends a result of Erdős and Gallai who, in 1959, gave a classification of the structures of the largest subgraphs of Kn with a given matching number. We show that their result extends to Gn,p with high probability when p≥n8lnn or p≪n1, but that it does not extend (again with high probability) when n4ln(2e)<p<3nlnn.