In the early hours of Nov. 5 , 1605 , officials of King James I of England , pursuing an intelligence lead , found Guy Fawkes and 36 barrels of gunpowder hidden in a storeroom on the ground floor of the Palace of Westminster , a warren of meeting rooms , apartments and even shops , where Parliament was to meet later that day .