With a territory of 7 020 km², Sofia Province is the second-largest in Bulgaria. Stara Planina, Sredna Gora and Rila are the main mountain ranges. Rila is the source of the Iskar, the longest river that runs entirely within Bulgarian territory.