How does the stock market determined price

How is the stock market price determined on a day-to-day basis?