The Hague was founded in 1248 by William II, Count of Holland and Rex Romanorum, who was supposed to become Holy Roman Emperor. He started the construction of a castle in a forest near the sea in Holland, where he intended to live after his coronation. He died in battle before he could be crowned.