Gunpowder was used for hydraulic engineering in China by 1541.
The latter half of the 19th century saw the invention of nitroglycerin, nitrocellulose and smokeless powders which soon replaced black powder in many applications.