[1] The mosque was built during the Dutch colonial period, and it was originally a steam power plant.
[3] Underneath the main building was a foxhole that had been used for assembling weapons such as hand grenades and mortars.
The growth of infrastructure in Sawahlunto town triggered by coal mining activities experienced a rapid development in the late 19th century.
[5][6] Considering the water level on the edge of the power plant was increasingly decreasing however, the government of the Dutch East Indies built a replacement power plant in Salak, Talawi in 1924 which utilizes the stream of Batang Ombilin River.
[7] No longer functional power plant building in Kubang Sirakuak was then used as a place for protection and assembly of weapons by independence fighters in Sawahlunto during the Indonesian revolution before finally converted into a mosque in 1952, while the chimney as high as more than 75 meters was turned into minarets, and an additional 10 meters tall dome was added.