Castles became star forts, with stone/brick augmented with massive amount of earth. These were relatively effective against artillery into the 20th century.