The government can overcome the free-rider problem by forcing people to pay for the provision of a public good through taxes.