Titan is the only Moon in the Solar System with a significant permanent atmosphere. Within this nitrogen-methane atmosphere, an ionosphere forms. Titan has no significant magnetic dipole moment, and is usually located inside Saturn's magnetosphere. Atmospheric particles are ionized both by sunlight and by particles from Saturn's magnetosphere, mainly electrons, which reach the top of the atmosphere. So far, the Cassini spacecraft has made over 45 close flybys of Titan, allowing measurements in the ionosphere and the surrounding magnetosphere under different conditions. Here we review how Titan's ionosphere and Saturn's magnetosphere interact, using measurements from Cassini low-energy particle detectors. In particular, we discuss ionization processes and ionospheric photoelectrons, including their effect on ion escape from the ionosphere. We also discuss one of the unexpected discoveries in Titan's ionosphere, the existence of extremely heavy negative ions up to 10 000 amu at 950 km altitude.