||This article may require cleanup to meet Wikipedia's quality standards. The specific problem is: Text format, language, grammar. (March 2015)|
|This article needs additional citations for verification. (March 2015)|
|Founded by||King Viramdev Desai|
|Named for||King Viramdev Desai|
|Elevation||32 m (105 ft)|
|Time zone||IST (UTC+5:30)|
Around 1090, Minaldevi, the mother of Siddhraj Jaisinh of Solanki dynasty who ruled from Anhilwad Patan, built the Mansar lake. Siddhraj added several shrines and temples later. Under the strong Mandal chief, Viramgam did not become part of the Gujarat Sultanate till 1530. Commanding the entrance to Kathiawar, the Mughal governors chose it as the head-quarters of the Jhalavad district, and in the disturbances of the eighteenth century it was the scene of several struggles.
Fortified by its Desai about 1730, it continued under a Muslim governor, till in 1735 the Desai Bhavsingh called in the Marathas who, dislodging the Muslim governor, held the town till 1740. In that year Bhavsingh, hoping to make himself independent, drove out the Marathas. But after four months they returned in strength, and Bhavsingh unable to cope with them, on promise of the estate of Patri, gave up Viramgam. Maratha ruled the town until it was handed over to British.
Old town of Viramgam is surrounded by a towerflanked brick and stone wall, rectangular in shape, and about 21 miles round. In the wall are five gates, on the north the Golwadi gate leading to Patan; on the north-east the Bharwadi gate leading to the railway station ; on the east the Raipuri or Rayyapur gate leading to Ahmedabad; on the south-west the Gangasar gate, and on the west the Mansar or Munsar gate. There are also two unopened gatewayson the north-west and north-east, and in the south face is a window through which water is drawn from the Gangasar lake. It was possibly built by Viramdev Desai around 1730.
The town is surrounded by three reservoirs, the Gangasar lake on the south-east and south, lying outside of the wall except a small portion known as the Gusaria lake; in the south-west beyond the Gangasar gate the Dhunia lake; and in the west the Mansar lake.
The Gangasar lake is built eight hundred years ago by Muslim Sufi saint Hazrat Alauddin Shah Chishty with help of Hazrat Islahuddin. He was born Hindu and his birth name was Gangu Vanjara. According to legend, he converted to Islam after watching miracles by Aladdin Shah. He built a lake on request of Hazrat Aladdin Shah and was named Gangasagar after his former name Gangu Vanjara. The name later shortened to Gangasar.
Mansar lake was built about 1090 by Minaldevi, the mother of Siddhraj Jaisinh. Formerly known as Mansarovar, now shortened into Mansar or Munsar lake is 220 yards round, shaped like the conch and is surrounded by flights of stone steps. Gathering from the west, the water passes into a stone-built eightsided silt-well, kund, with, in a niche in each side, a figure cut in bold relief. From the silt-well, through a stone-lined channel and a three-cylinder tunnel, the water passes into the lake. Over the tunnel is a large pyramid-roofed pavilion repaired by the Marathas, and made a temple of Bahuchraji, or, as she is locally called, Mansar Mata. Towards the north the steps round the lake are ruinous, and in several places broken roadways run down to the water's edge. Round the top of the steps runs a row of small spire-roofed shrines, many now wanting but once said to have numbered more than 300. In each shrine on one side of the lake is a pedestal, probably for an image of Krishna, and on the other side a round basin, jaladhar, probably sacred to Shiva. On either hand of one of the roadways that run to the water's edge, is a larger temple with double porch and spire and across the lake a flat roofed colonnade. 
Near Mansar lake, there is the Idgah or Muslim place of prayer. In the town are two old mosques the Ganj Bazar Mosque, a Hindu temple changed to its present form about 1560; and the Gangasar mosque built in 1584 by Abdul Aziz Syed bin Abu Muhammad. Jama Masjid is a stone built mosque situated in Moti Bazar.
Islamic shrines ( Dargah Sharif )
There are several shrines dedicated Sufi saints.
- Hazrat Allaudin Shah Chisty near Gangasar gate
- Hazrat Gulam Mohyuddin behind Jumma Masjid
- Hazrat Makhdum Bhawan Shah and Makhdum Bahauddin Zakariya in Zande ki Masjid
- Dada Pir Hazrat Makhdum Jahaniya Jahagast Nawsaiyed near burial ground
Viramgam is known for its railway history. It used to be the point of intersection of BB & CI Railway and the Saurashtra Railway. Viramgam is at the intersection of four railway lines Ahmedabad-Viramgam; Viramgam-Surendranagar; Viramgam-Mehsana; and Viramgam-Dhrangdhra-Samakhyali lines.
It is at the intersection of the routes splitting towards Kachchh and Saurashtra while travelling from Ahmedabad.
There is a crude oil storage tank depot at Viramgam on Salya-Mathura oli pipeline of Indian Oil Corporation.
- Gazetteer of the Bombay Presidency: Ahmedabad (Public Domain text). Government Central Press. 1879. pp. 354–356.
- Falling Rain Genomics, Inc - Viramgam