An IPO occurs when a privately owned company issues stock to be sold to the public for the first time. This allows the company to raise capital from public investors on a stock exchange. The process of going public involves hiring investment banks, preparing regulatory filings, setting an initial public offering price, and conducting a roadshow to market the stock. Some key benefits of an IPO for a company include raising funds for growth while also providing liquidity for early private investors.