A market economy is a system in which the supply and demand for goods and services plays a primary role in a competitive marketplace. ... The government may also ensure national security by not allowing businesses to transact with enemy countries and providing services that are not typically handled by private business.