The invention relates to the field of micro energy, in particular to a composite type electric generator based on an electromagnetism and friction principle. The composite type electric generator comprises a shell, a top mass block, a top permanent magnet, a friction layer, a metal coil and a bottom permanent magnet, wherein the top mass block, the top permanent magnet, the friction layer, the metal coil and the bottom permanent magnet are arranged in the shell from top to bottom. The shell is of a cylinder shape, the top mass block, the top permanent magnet, the friction layer, the metal coil and the bottom permanent magnet are all cylindrical, and a film wraps the metal coil. The composite type electric generator has the advantages that the composite type electric generator replaces a traditional battery to supply power for a lower-power-consumption electronic component, mutual advantage compensation of an electromagnetic generator and a friction type generator is achieved, energy conversion efficiency of the generator is improved, reliability is high, the separating speed is high, the structure of the component is simplified, and large-scale production is facilitated.