A tributary of the Tagus, the longest river on the Iberian Peninsula, Guadarrama has its source in the Siete Picos, part of the Sierra de Guadarrama, in the Community of Madrid, in the central part of the country, at an altitude of 1900 meters .