Complex sentence: Construction only began in 1879, when the first stone was laid by Tengku Qadhi Malikul Adil who became its first imam, and was completed on 27 December 1881 during the reign of Muhammad Daud Syah, the last sultan of Aceh.
Split into simpler sentences: Construction only began in 1879, when the first stone was laid by Tengku Qadhi Malikul Adil who became its first imam. Construction was completed on 27 December 1881 during the reign of Muhammad Daud Syah, the last sultan of Aceh.