Controllable synthesis of light absorbing nanomaterials (MBE growth method, CVD growth method, hydrothermal method, etc.) and their applications in photocatalysis, photocatalysis and electrocatalysis of carbon dioxide reduction, nitrogen reduction, water decomposition, and other fields.