It works on the same principle of buying and selling: a privately held company sells its shares and you buy them for a predetermined price. Once you get the shares, you become a part-owner of the company in proportion with the shares you hold.