Mustafa II
His father Mustafa II mostly lived in Edirne. Mahmud passed his childhood in Edirne. On 18 May 1702 he started his education in Edirne. When his father deposed himself from the throne he was brought to Istanbul and locked up in Kafes where he spent 27 years of his life.