This paper presents the first observation of top-quark pair production in association with two photons ($t\bar{t}\gamma\gamma$). The measurement is performed in the single-lepton decay channel using proton-proton collision data collected by the ATLAS detector at the Large Hadron Collider. The data correspond to an integrated luminosity of 140 fb$^{-1}$ recorded during Run 2 at a centre-of-mass energy of 13 TeV. The $t\bar{t}\gamma\gamma$ production cross section, measured in a fiducial phase space based on particle-level kinematic criteria for the lepton, photons, and jets, is found to be $2.42^{+0.58}_{-0.53}\, \text{fb}$, corresponding to an observed significance of 5.2 standard deviations. Additionally, the ratio of the production cross section of $t\bar{t}\gamma\gamma$ to top-quark pair production in association with one photon is determined, yielding $(3.30^{+0.70}_{-0.65})\times 10^{-3}$.
Inclusive and differential cross-sections are measured at particle level for the associated production of a top quark pair and a photon ($t\bar{t}\gamma$). The analysis is performed using an integrated luminosity of 140 fb$^{-1}$ of proton-proton collisions at a centre-of-mass energy of 13 TeV collected by the ATLAS detector. The measurements are performed in the single-lepton and dilepton top quark pair decay channels focusing on $t\bar{t}\gamma$ topologies where the photon is radiated from an initial-state parton or one of the top quarks. The absolute and normalised differential cross-sections are measured for several variables characterising the photon, lepton and jet kinematics as well as the angular separation between those objects. The observables are found to be in good agreement with the Monte Carlo predictions. The photon transverse momentum differential distribution is used to set limits on effective field theory parameters related to the electroweak dipole moments of the top quark. The combined limits using the photon and the $Z$ boson transverse momentum measured in $t\bar{t}$ production in associations with a $Z$ boson are also set.