New Delhi (CNN) Two women in the southern Indian state of Kerala made history Wednesday, defying religious conservatives to enter the Sabarimala Temple, one of Hinduism's holiest sites.

The pair, aged 42 and 44, became the first women to access the shrine after the country's Supreme Court overturned a centuries-old ban on women aged 10 to 50 from entering the temple in September last year, ruling it to be discriminatory and arguing that women should be able to pray at the place of their choice.

The two women made the long, uphill trek to the famous golden-roofed temple accompanied by plainclothes police officers, arriving at the site at approximately 3:45 a.m. Wednesday, Kerala police told CNN.

Women raise their hands to take a pledge to fight gender discrimination as they form part of a hundreds kilometer long "women's wall" in Thiruvananthapuram, in the southern Indian state of Kerala.

The temple was later closed for one hour to allow priests time to purify the site following the visit by the women.

The Sabarimala shrine, which is thought to be more than 800 years old, is considered the spiritual home of Lord Ayyappa, a Hindu god of growth. Proponents of the ban on women of menstrual age argue that since Ayyappa is considered celibate, allowing "impure" women into the temple would be disrespectful.

Read More