How is the closing price of a stock determined

How is the closing price of a stock finalized at market close?

The closing price is the last price at which a stock was traded during regular market hours. It is reported at the end of each trading day and is used as a reference for the next day’s trading. Closing prices are widely used for analysis and reporting.