Allocative efficiency occurs when resources are distributed in a way that maximizes the total benefit received by society. In this state, the price of a good reflects the marginal cost of producing it, meaning that the resources are used where they are most valued, and society's welfare is optimized.