Other contributors have said "Were is edinburgh castle built?" is the same question as "Where was Edinburgh castle built?" If you believe that these are not asking the same thing and should be answered differently, click here
Because Scotland has always been a peaceful nation and the best farming land is at the top of hills. They had to build the castle there to stop all the topsoil blowing away.