Demand in a perfectly competitive market

If there is excess demand in a perfectly competitive market, does the government need to intervene to restore the equilibrium price and quantity? Why or why not?