this could have its own thread....
egon in australia it is not legal to posses hazardous-explosives of a weight over 30 grams without permits (pay up for the permit), transporting any explosives without (another) permit is illegal, it is illegal to store explosives without yet another permit, it is illegal to buy or sell, use explosives without a license
so yes it is legal to make explosives like gunpowder, but you cant make more than 30 grams, cant move it, cant do anything with it cant even store it