Malalai was born in 1861 in the village of Khig, about 3 miles southwest of Maiwand in the southern Kandahar province of Afghanistan. During the late 1880s, war broke out between Afghanistan and Great Britain, with the last war between the two states being in the 1840s. The British, along with their Indian forces, had launched a major expedition into Afghanistan from India. The main garrison of the British was located in Kandahar, which is the closest city to the town of Maiwand. The military of Afghanistan was represented by commander Ayub Khan, son of Afghan Emir Sher Ali Khan. Malalai's father, who was a shepherd, and her fiancé joined with Ayub Khan's army in the large attack on the British-Indian forces in July 1880. Like many Afghan women, Malalai was there to help tend to the wounded or provide water and spare weapons. According to local sources, this was also supposed to be her wedding day.