Polyethyleneimine (PEI) functionalized multicolor luminescent LaF3 nanoparticles were synthesized via a novel microwave-assisted method, which can achieve fast and uniform heating under eco-friendly and energy efficient conditions. The as-prepared nanoparticles possess a pure hexagonal structure with an average size of about 12 nm. When doped with different ions (Tb3+ and Eu3+), the morphology and structure of the nanoparticles were not changed, whereas the optical properties varied with doped ions and their molar ratio, and as a result emission of four different colors (green, yellow, orange and red) were achieved by simply switching the types of doping ions (Eu3+ versus Tb3 +) and the molar ratio of the two doping ions.