An IPO (Initial Public Offering) is when a company offers its shares to the public to raise capital. Initially issued in the primary market, these shares are subsequently traded in the secondary market, allowing public trading.