In this article we propose a new methodology for crystal structure prediction, which is based on the evolutionary algorithm USPEX and the machine-learning interatomic potentials actively learning on-the-fly. Our methodology allows for an automated construction of an interatomic interaction model from scratch replacing the expensive DFT with a speedup of several orders of magnitude. Predicted low-energy structures are then tested on DFT, ensuring that our machine-learning model does not introduce any prediction error. We tested our methodology on a problem of prediction of carbon allotropes, dense sodium structures and boron allotropes including those which have more than 100 atoms in the primitive cell. All the the main allotropes have been reproduced and a new 54-atom structure of boron have been found at very modest computational efforts. E DFT = -6.706 eV/atom Atoms: 12, Space group: R-3m, Core-hours: 10 3 AL-MTP vs. 3·10 3 DFT |E DFT -E MTP | = 28.6 meV/atom γ-boron E DFT = -6.678 eV/atom Atoms: 28, Space group: Pnnm, Core-hours: 2·10 3 AL-MTP vs. 2.5·10 4 DFT |E DFT -E MTP | = 58.1 meV/atom E DFT = -6.667 eV/atom, Atoms: 54, Space group: Im-3, Core-hours: 3·10 3 AL-MTP vs. 3.5·10 5 DFT |E DFT -E MTP | = 7.3 meV/atom E DFT = -6.667 eV/atom, Atoms: 52, Space group: P-42m, Core-hours: 3·10 3 AL-MTP vs. 3.2·10 5 DFT |E DFT -E MTP | = 37.3 meV/atom E DFT = -6.665 eV/atom, Atoms: 26, Space group: Cccm, Core-hours: 2·10 3 AL-MTP vs. 2.1·10 4 DFT |E DFT -E MTP | = 13.6 meV/atom β-boron approximant E DFT = -6.704 eV/atom, Atoms: 106, Space group: P1, Core-hours: 7·10 3 AL-MTP vs. 6.6·10 7 DFT