The tragedy of the commons is the overexploitation of a common good by individual, rational actors.
The free-rider problem is when individuals benefit from a public good without paying their share of the cost.