A composite inductor includes a block made of resin or rubber having a magnetic material dispersed therein. Spirally wound coils are buried in the block so that the coil axes of the coils are arranged in the same direction. The end portions of the coils are electrically connected to external electrodes provided on two surfaces of the block substantially at a right angle to the axes of the coils.