Superconducting magnet and RF technologies are fundamental ingredients that fuel advances in High Energy Physics (HEP), and more in general particle accelerators for scientific, industrial and medical applications. In this lecture we will review the reasons why superconductivity is necessary in frontier accelerators such as the LHC, or for future realizations such as the ILC or FCC. We will then enter into the details of superconducting magnets for beam lines and detectors, and superconducting RF cavities. A special focus will be given to recent advances and perspective of future developments, e.g. high field LTS and HTS magnets and high-gradient RF structures.