<Tr> <Th_colspan="2"> Music video </Th> </Tr> <Tr> <Td_colspan="2"> "Castle on the Hill" on YouTube </Td> </Tr> <P> "Castle on the Hill" is a song by English singer - songwriter Ed Sheeran . It was released as a digital download on 6 January 2017 as one of the double lead singles from his third studio album ÷ (2017), along with "Shape of You". "Castle on the Hill" was written and produced by Ed Sheeran and Benny Blanco . The song refers to Framlingham Castle in Sheeran's home town . </P> <P> Released on the same day as "Shape of You", "Castle on the Hill" reached number two in a number of countries, including the UK, Australia and Germany, while "Shape of You" debuted at number one . It was first time in the history of the UK, Australian and German charts that an artist has taken the top two chart positions with new songs . The song debuted at number six in the US, while "Shape of You" entered at number one; this made Sheeran the first artist ever to have two songs simultaneously debut in the US top 10 . </P>

Where is castle on the hill based on