Market failure is said to occur whenever: Private markets do not allocate resources in the most economically desirable way.