Barog, the engineer, was responsible for designing a tunnel near the railway station. He commenced digging the tunnel from both sides of the mountain. He, however made mistakes in his calculation and while constructing the tunnel, it was found that the two ends of the tunnel did not meet. Barog was fined an amount of 1 Rupee by the British government. Unable to withstand the humiliation, Barog committed suicide. He was buried near the incomplete tunnel. The area came to be known as Barog after him.
Soon, however, another tunnel was built by H.S. Harrington, Chief Engineer in Railways at that time. This tunnel, currently, is the longest of the 102 operational tunnels on the route of the Shimla-Kalka Railway. Trains take about 2.5 minutes to cross this tunnel, running at 25 kilometre per hour.
Till 2003, National Highway 22 connecting Chandigarh with Shimla passed through Barog. On 6 December, 2003, the new section of the highway was inaugurated that would connect the village of Kumarhatti directly to Solan, thus bypassing Barog. This was done to avoid the steep incline to Barog from Kumarhatti.
Barog is located at a height of 1560 metres above the mean sea level. Due to its height, temperatures here range between 23 to 10 °C during summers and between 15 to 5 °C during winters. The summers last from April to July. Winters set in during December and typically last up to February.
Barog also serves as a fitness camp for the Indian National Hockey and other athletic teams.