Stock markets operate through a network of exchanges. Companies list their stocks on an exchange through a process called an Initial Public Offering (IPO). Investors can then buy and sell these stocks among themselves. The price of stocks is determined by supply and demand dynamics; if more people want to buy a stock than sell it, the price goes up, and vice versa.