In the Middle Ages, there were markets in several Ryedale villages, Malton, Pickering, Kirkbymoorside, and Helmsley. A monastery was built at Lastingham in 654. Over the centuries, Celts, Romans and Anglo Saxons all inhabited the area around Pickering. The district had many ancient Saxon churches and some can still be visited, including St Peter's in Scrayingham, St Martin's in Wharram Percy, St Martins in Bulmer, St Helens in Amotherby, All Saints in Appleton-le-Street, St Peter and St Paul's Church, Pickering, All Saints in Hovingham, Holy Trinity in Stonegrave, St Gregory's Minster, Kirkdale built around 1055-1065, All Saints in Sinnington and St Andrews in Ailsby/Middleton. The Kirkdale sundial above St Gregory's door dates to the 11th century (c. 1055 to 1065).