The cause of her death is unknown, but some sources say it was due to hardship. The woman, Zulfawu Ishaku, was 68 years old and came from Kumasi, a city in the Ashanti Region of Ghana.
She was not an official pilgrim, but had travelled to Mecca earlier with a visiting visa, which is not allowed by the Saudi authorities for the Hajj.
The Hajj is one of the Five Pillars of Islam, which are the essential duties that every Muslim must perform at least once in their life if they are able and can afford it.
Every year, millions of Muslims from around the world go to Mecca to perform the Hajj, which takes place in the last month of the Islamic calendar.
This year, the Ghana Hajj Board warned people not to use visiting visas to enter Saudi Arabia for the Hajj, as they would be arrested and handed over to the authorities.
Three such people were arrested over the weekend.
Zulfawu Ishaku had stayed in Mecca since the Umrah season, which is another type of pilgrimage that can be done at any time of the year, with the intention of joining the official pilgrims for the Hajj.
However, she faced difficulties during her stay, which worsened her health condition and led to her death.
The Ghana Consulate has been notified about her case and arrangements are being made for her burial.