The general sum-connectivity index is defined as . Let be the class of trees of order with given matching number . In this paper, we characterize the structure of the trees with a given order and matching number that have maximum general sum-connectivity index for and give a sharp upper bound for .