Electrocyclic reactions are pericyclic reactions where a conjugated polyene transforms into a cyclic compound, with mechanisms influenced by thermal or photochemical conditions. These reactions involve strict stereo-selectivity, governed by the number of π electrons and symmetry considerations in molecular orbitals, leading to allowed or forbidden processes depending on the charge of the reactants. Examples include various synthetic applications such as the thermal or photochemical cyclization of alkenes and the Nazarov cyclization, showcasing the reactions' utility in organic synthesis.