With the advent of gunpowder and the consequent development of firearms such as the arquebus and the cannon in the latter part of the middle ages a process was set in motion which would inexorably result in a virtual abandonment of the encastellated fortification as a means of defense.
See also: Military history, Medieval warfare
wikipedia.org dumped 2003-03-17 with terodump