Capital markets are platforms where long-term securities such as stocks and bonds are bought and sold. They provide a means for companies and governments to raise capital and for investors to allocate their funds, and they are an integral part of the financial system.