In two-photon microscopy, two photons of lower energy are absorbed simultaneously by a fluorescent molecule to excite it. This excitation occurs only at the focal point, thus providing inherent optical sectioning capabilities. The emitted fluorescence is then detected to create high-resolution images of biological tissues. The use of longer wavelengths allows for deeper tissue penetration, which is crucial for three-dimensional imaging.