Parliament adopted the War Measures Act in August 1914, shortly after the beginning of World War I. This legislation, based in part on the British Defence of the Realm Act, was adopted to protect national security and to prepare for the conditions of war.