How is the opening price of a stock determined

What role does the opening auction play in setting the opening price?

The opening price is set by matching buy and sell orders collected before the market opens. The price where the most shares can be traded becomes the opening price. This process is called the opening auction and can be influenced by after-hours news.