Castle Hill, on which Stirling Castle is built, forms part of the Stirling Sill, a formation of quartz-dolerite around 350 million years old, which was subsequently modified by glaciation to form a crag and tail. It is likely that this natural feature was occupied at an early date, as a hill fort is located on Gowan Hill, immediately to the east.