The Mughal or Mogul Empire ruled most of India and Pakistan in the 16th and 17th centuries. The time of their reign was marked by a period of peaceful religious and cultural blossoming between Hindus and Muslims in India, whose culmination is the golden era of Islamic-Hindu cross-influences. This empire, in turn, strengthened the influence of Islam in South Asia, extending Muslim, especially Persian culture. Mughal were Muslims who ruled the Hindu majority.
Mughals were basically sunni- Muslims. They followed Islam religion and during the period of Akbar, they followed Din-I-Illahi and after his death Jahangir readopted Islam as the official religion of Mughals.So basically Islam.