The Quran was compiled into its present form during the Caliphate of Abu Bakr and completed during the Caliphate of Uthman ibn Affan. The compilation process ensured the preservation and consistency of the Quranic text.