A mixed economy is an economy where resources are allocated by both the government and by the market mechanism.