<Tr> <Td_colspan="5"> Distribution of religions </Td> </Tr> <P> Hindus are 88.8% while Muslims are 9.3% of the population in Agra district . Hinduism, Islam and Jainism are the major religions in Agra city with 80.7%, 15.4% viz. 1.0% of the population adhering to them; others are 1.5% . The Catholic minority is served by its own Metropolitan Archdiocese of Agra . </P> <P> It is generally accepted that Agra was both an ancient city from the times of the Mahabharata (see above) and yet nevertheless Sultan Sikandar Lodī, the Muslim ruler of the Delhi Sultanate, founded Agra in the year 1504 . After the Sultan's death, the city passed on to his son, Sultan Ibrāhīm Lodī . He ruled his Sultanate from Agra until he fell fighting to Mughal Badshah Bābar in the First battle of Panipat fought in 1526 . </P> <P> The golden age of the city began with the Mughals . It was known then as Akbarabād and remained the capital of the Mughal Empire under the Badshahs Akbar, Jahāngīr and Shāh Jahān . Akbar made it the eponymous seat of one of his original twelve subahs (imperial top - level provinces), bordering (Old) Delhi, Awadh (Oudh), Allahabad, Malwa and Ajmer subahs . Shāh Jahān later shifted his capital to Shāhjahānabād in the year 1648 . </P>

Who established the city of agra at its present location