Managing A Huge Crowd And Providing Them With Required Services Has Always Been A Challenge. Millions Of Faithful Visits The Holy Sites In Saudi Arabia To Perform Various Rituals, Each Year. During The Event Of Hajj, Masses Of Pilgrims Gather In Makkah And Madinah Making It One Of The Largest Gatherings In The World. Several Challenges Arise While Managing Such A Huge Number Of People. These Challenges Include Safety, Security And Health Issues Pertaining To Pilgrims. This Paper Proposes To Utilize State Of The Art Wireless Technology To Solve These Potential Problems. A Novel Architecture And Related Algorithms Have Been Presented That Use RFID And WSN To Provide Monitoring, Tracking, And Locationbased Services For The Pilgrims. Moreover, Using The Proposed Architecture Overcrowding Issues Can Also Be Resolved That Can Help Save Many Lives. Furthermore, A Mathematical Based Analysis Has Also Been Discussed That Proves That This Proposed Architecture Can Be Utilized To Solve Various Challenges Related To Management Of The Crowd In General And Management Of Pilgrims In Particular