Companies raise funds in the primary market by issuing new securities, such as stocks and bonds, with the help of an underwriter. The company files a prospectus with regulatory authorities, sets the offering price, and markets the securities to potential investors.