Isoxazolines and isoxazoles commonly serve as core structures of many therapeutic agents and natural products. However, the metal-free and catalysis-free strategy for the synthesis of these privileged motifs at room temperature remains a challenging task. Herein, we report a three-component strategy to afford diverse isoxazolines and isoxazoles via [3 + 2] cycloadditions of in situ-formed nitronates and olefins/alkynes under visible-light irradiation.