The name Chandigarh is a combination of the two words "Chandi" and "Garh". Chandi refers to the Hindu goddess Chandi, a form of the goddess Durga, while Garh means fort. According to legends, the temple of Chandi was located nearby, and the fort was built around it to protect the temple. However, historical records indicate that the name originated from the first Indian Prime Minister Jawaharlal Nehru, who named the city after the ancient Chandi Mandir.